Module: createOpenStreetMapImageryProvider

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.
Parameters:
Name Type Attributes Description
options Object <optional>
Object with the following properties:
Properties
Name Type Attributes Default Description
url String <optional>
'https://a.tile.openstreetmap.org' The OpenStreetMap server url.
fileExtension String <optional>
'png' The file extension for images on the server.
proxy Object <optional>
A proxy to use for requests. This object is expected to have a getURL function which returns the proxied URL.
rectangle Rectangle <optional>
Rectangle.MAX_VALUE The rectangle of the layer.
minimumLevel Number <optional>
0 The minimum level-of-detail supported by the imagery provider.
maximumLevel Number <optional>
The maximum level-of-detail supported by the imagery provider, or undefined if there is no limit.
ellipsoid Ellipsoid <optional>
The ellipsoid. If not specified, the WGS84 ellipsoid is used.
credit Credit | String <optional>
'MapQuest, Open Street Map and contributors, CC-BY-SA' A credit for the data source, which is displayed on the canvas.
Source:
See:
Throws:
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.
Type
DeveloperError
Returns:
The imagery provider.
Type
UrlTemplateImageryProvider
Example
var osm = Cesium.createOpenStreetMapImageryProvider({
    url : 'https://a.tile.openstreetmap.org/'
});