I am trying to use the
secondary_marker in mapbox-gl.js however it appears they have been removed from the sprite.json in streets-v9 (probably v8 too). I've found a working example in streets-v7 where they were part of the sprite.json/sprit.png, but they are gone now.
How can I get these back or what is the new replacement? I've gone through the new sprint.png but I don't see anything similar.Answer1:
Apologies for the change, ongle! We've recently worked to <a href="https://github.com/mapbox/mapbox-gl-styles/issues/241" rel="nofollow">standardize the icons</a> <a href="https://github.com/mapbox/mapbox-gl-styles#standard-icons" rel="nofollow">available across all the Mapbox styles</a> which, unfortunately, required some breaking changes.
The closest replacement to
marker-15. The appearance of this marker will be different per style.
You may also choose to <a href="https://www.mapbox.com/help/custom-markers/" rel="nofollow">upload your own marker image per this guide</a>.