Tutorial - Changing Tile Source

When a map is created with the default map tile layer, it defaults to using tiles from openstreetmap.org.

Step 1
Active
Inactive

You can use a different tile source by changing the URL used by the tile layer. You should also set the attribution.

Step 2
Active
Inactive

We could have initially created the layer with a different tile server:

Step 1-B
Active
Inactive

There are also predefined sources. See Object.keys(geo.osmLayer.tileSources) for a list of sources.

Step 1-C
Active
Inactive