new createOpenStreetMapImageryProvider(){UrlTemplateImageryProvider}
Create an InstanceImageryProvider instance that can provide tile images hosted by OpenStreetMap or other Slippy tile providers. The default URL connects to the server operated by OpenStreetMap volunteers, so it must comply with their Tile Usage Policy
| Name | Type | Default | Description |
|---|---|---|---|
options.url |
String | 'https://a.tile.openstreetmap.org' |
optional
OpenStreetMap server URL. |
options.fileExtension |
String | 'png' |
optional
The file extension of the image on the server. |
options.proxy |
Object |
optional
Proxy used for requests. The object should have a getURL function to return the proxy URL. |
|
options.rectangle |
Rectangle | Rectangle.MAX_VALUE |
optional
The rectangle of the layer. |
options.minimumLevel |
Number | 0 |
optional
The minimum level of detail supported by the image provider. |
options.maximumLevel |
Number |
optional
The maximum level of detail supported by the image provider is undefined if there is no limit. |
|
options.ellipsoid |
Ellipsoid |
optional
Ellipsoid body. If not specified, use WGS84 ellipsoid. |
|
options.credit |
Credit | String | 'MapQuest, Open Street Map and contributors, CC-BY-SA' |
optional
The copyright statement of the data source is displayed on the canvas. |
- See:
Throws:
-
Rectangle and minimum level indicate that there are four or more tiles at the minimum level. Image providers with more than four tiles at the lowest level are not supported.
- Type
- DeveloperError
Returns:
| Type | Description |
|---|---|
| UrlTemplateImageryProvider | Image provider |
Example
var osm = SuperMap3D.createOpenStreetMapImageryProvider({
url : 'https://a.tile.openstreetmap.org/'
});