createOpenStreetMapImageryProvider(options) → UrlTemplateImageryProvider
Creates a
UrlTemplateImageryProvider
instance that provides tiled imagery hosted by OpenStreetMapor another provider of Slippy tiles. The default url connects to OpenStreetMap's volunteer-runservers, so you must conform to theirTile Usage Policy.
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
Object with the following properties:
|
Returns:
The imagery provider.
Throws:
-
DeveloperError : The rectangle and minimumLevel indicate that there are more than four tiles at the minimum level. Imagery providers with more than four tiles at the minimum level are not supported.
Example:
var osm = Cesium.createOpenStreetMapImageryProvider({
url : 'https://a.tile.openstreetmap.org/'
});