Mapilion - Vector and Raster Map Tiles

फ्रीमियम
द्वारा Robin | अपडेट किया गया vor 15 Tagen | Mapping
लोकप्रियता

9.1 / 10

लेटेंसी

365ms

सेवा का स्तर

99%

Health Check

N/A

सभी ट्यूटोरियल पर वापस जाएं (2)

Use Raster Tiles with Leaflet

Raster Tiles can be consumed by most map libraries, like Leaflet. For Leaflet you can use raster tiles like this:

 var mapilion = L.tileLayer('https://mapilion-vector-and-raster-map-tiles.p.rapidapi.com/rapid-api/raster/kurviger-liberty/{z}/{x}/{y}?rapidapi-key=[YOUR_RAPID_API_KEY]', {
   attribution: '© <a href="https://mapilion.com/attribution">Mapilion</a> <a href="http://www.openmaptiles.org/" target="_blank">© OpenMapTiles</a> <a href="http://www.openstreetmap.org/about/" target="_blank">© OpenStreetMap contributors</a>',
 });

 var map = L.map('map', {
   center: [40, -30],
   zoom: 3,
   minZoom: 0,
   maxZoom: 18,
   layers: [mapilion]
 });

If you would like to get raster tiles of a custom style, please send us a request, we might be able to provide you with your custom style.