mapbox / mapbox.js

Mapbox JavaScript API, a Leaflet Plugin
mapbox.com/mapbox.js/
Other
1.92k stars 386 forks source link

[docs] correct api usage of plain-leaflet example #1322

Closed riastrad closed 4 years ago

riastrad commented 4 years ago

Fixes #1320

Previously, our "plain leaflet" example requested tiles from the Static Tiles API without account for the fact that this API returns 512x512 styles by default, whereas Leaflet.js expects 256x256 tiles by default. This update corrects this example to account for this discrepancy.

(I also updated DOCUMENTING.md while I was in there.)

cc/ @mapbox/static-apis @mapbox/docs