Mapbox Gl Js Available Icons
I am rewriting a web application from Mapbox.js to Mapbox GL js. Using the standard 'mapbox://styles/mapbox/streets-v8' style, where can I find a list of all working marker icons?
Solution 1:
We're still sorting out the final implementation details for the default icon set and will document that set thoroughly once it has been decided upon.
Until then, you can see exactly what icons are available for a given style by peeking at the mapbox-gl-styles
repo in the sprites
folder.
Solution 2:
Since that issue was closed, all maki icons are now natively available in mapbox-gl.js. You can see all available at https://www.mapbox.com/maki-icons/. You can also multiply their size using the icon-size
paint property, though this may result in pixelation. There are still some hitches, like the icon-color
property not yet working, so you'll need to edit, recolor, and republish icons for now. (issue #3605).
Post a Comment for "Mapbox Gl Js Available Icons"