[docs] Update Doc Examples to Use Modern Endpoint (#6905)

* update the first few examples

* Update all legacy Static API urls with modern URLs

* Add missing map??

* oops stray png

* Remove example.html
This commit is contained in:
Josh Erb
2019-11-28 00:41:37 -06:00
committed by Vladimir Agafonkin
parent 587eb48163
commit 4a8e55b0c4
25 changed files with 48 additions and 55 deletions

View File

@ -8,12 +8,12 @@ customMapContainer: "true"
var mymap = L.map('mapid').setView([51.505, -0.09], 13);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
maxZoom: 18,
attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ' +
'<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
id: 'mapbox.streets'
id: 'mapbox/streets-v11'
}).addTo(mymap);
L.marker([51.5, -0.09]).addTo(mymap)