...
Page Properties | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Problem
Can Basemaps BaseMaps served via ADS be displayed on a Leaflet Map?
Solution
Astun provide both OS Premium Colour and Greyscale Base maps BaseMaps as a Web Mercator XYZ tile service as part of Astun Data Services. These layers use the same tiling scheme as OSM and Google maps and are therefore compatible with Leaflet without having to specify a custom projection.
Example HTML
The URL templates are as follows replacing your-account-name with your Astun Data Services account name.
The following code demonstrates adding the OS Premium base map BaseMap to a Leaflet map you will just need to decide which of the following URL templates you wish to use and update accordingly.
...