Thu, 07/14/2016 - 12:52
#1
Direct tile access discontinued
Hello, today i see this on my page:
http://oi64.tinypic.com/w8ugsp.jpg
I'm using Leaflet library and here is my Javascript code:
L.tileLayer('http://{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png', {
attribution: '© <a href="http://osm.org/copyright" title="OpenStreetMap" target="_blank">OpenStreetMap</a> contributors | Tiles Courtesy of <a href="http://www.mapquest.com/" title="MapQuest" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png" width="16" height="16">',
subdomains: ['otile1','otile2','otile3','otile4'],
minZoom: 5
}).addTo(map);
How should i edit it to include my Consumer Key?
How to make my map work again?
Can you tell me how to "translate" my code with code that use MapQuest plugin for Leaflet?
I can't see any <code>tileLayer</code> here: https://developer.mapquest.com/documentation/leaflet-plugins/maps
Can you tell me how to "translate" my code with code that use MapQuest plugin for Leaflet?
I can't see any <code>tileLayer</code> here: https://developer.mapquest.com/documentation/leaflet-plugins/maps
I did as you said and here is my code now:
var map = L.map('map-canvas', {
zoomControl: false // disable zoomControl when initializing map (which is topleft by default)
});
L.MQ.mapLayer().addTo(map);
map.setView(new L.LatLng(42.70, 12.08), 5);
But it says that L.MQ is not defined...
(I'm using Leaflet 0.7.3)
It worked, thank you so much!
PS: do you know how to change the language of countries name?
OK, i see. Thank you anyway.
You say there is no language control for the map labels but we need the labels in german again as it was before. What can we do now?
Thanks for your help