createOpenStreetMapImageryProvider(options) → UrlTemplateImageryProvider
Creates a
UrlTemplateImageryProvider
instance that provides tiled imagery hosted by OpenStreetMap
or another provider of Slippy tiles. The default url connects to OpenStreetMap's volunteer-run
servers, so you must conform to their
Tile 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/'
});