Closed riastrad closed 4 years ago
👋 @mapbox/gl-js @mapbox/static-apis this branch changes some pretty core functionality, so would appreciate a close review from one or both of you.
👋 @asheemmamoowala @mourner any chance you'll be able to review this before the end of the week?
@riastrad yes, will do!
Resolves #1316
Up until now, Mapbox.js defaults have relied heavily on the Mapbox Legacy Static Tiles endpoints.
I'll mark this PR as ready for review when the following are implemented:
mapID
will automatically load the equivalent style from the modern Static Tiles API.riastrad.{class style id}
) is passed tomap
objects andtileLayer
objects.tileLayer.setFormat()
method with defaultmapIDs
.~ Given that the url pattern for legacy & modern APIs is different, this appears to be unnecessary.If I identify any other usage of legacy APIs within the defaults, I will flag it and incorporate it within this PR before the review.
cc @mapbox/static-apis