OSM
- Last UpdatedFeb 27, 2025
- 1 minute read
Loads an image layer provided by OpenStreetMap, which is a free world map created and maintained by an open community. Optionally, an invert filter can be applied to the layer images to get a dark theme.
Though map tiles provided by Open Street Maps are free, usage restrictions apply to the OSM server at https://openstreetmaps.org. If you use the OSM base map tile server, ensure your usage is in compliance with OSM license requirements.
The following table provides the specific configurable options available for this layer:
|
Property |
Type |
Description |
|---|---|---|
|
dark [Optional] |
Boolean |
Applies an invert filter to the layer images. |
|
type |
osm |
A type of Layer. |
|
url [Optional] |
String |
URL template. Must include {x}, {y} or {-y}, and {z} placeholders.
|
Example of OSM
Below is an example of Open Street Map with dark theme:
-
Configuration and map preview

-
JSON string configuration
{
"title": "OSM",
"type": "osm",
"isBaseMap": true,
"dark": true
}