Raster maps for web¶
Displaying a grid of image tiles to make up a map is the traditional way of doing electronic maps. These consume more bandwidth and will be slower to load as a result, but some applications work only with raster tiles. If you are able to use vector, we encourage you to do so, as they will always look better and usually load faster.
For advanced users, we recommend OpenLayers. While it is a little heavier and has a steeper learning curve than the others, it's feature set is second to none.
Displaying a map (Leaflet)¶
Below is an example of how to use our tiles in Leaflet. Nothing special is required.
Just point to the tile URL for the style you want and everything should work seamlessly
as long as you have an active plan for your domain. Be sure to include the
placeholder as shown below to support retina screens.
This certainly isn't all there is to know about Leaflet. Check out the official documentation for Leaflet to learn about more advanced usage, including markers, overlays, and more.