Mapilion - Vector and Raster Map Tiles

부분 유료
분류별 Robin | 업데이트됨 a year ago | Mapping

8.8 / 10

지연 시간


서비스 수준


모든 자습서로 돌아가기 (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('{z}/{x}/{y}?rapidapi-key=[YOUR_RAPID_API_KEY]', {
   attribution: '© <a href="">Mapilion</a> <a href="" target="_blank">© OpenMapTiles</a> <a href="" target="_blank">© OpenStreetMap contributors</a>',

 var 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.

등급: 5 - 투표: 1