mapbox / simplespec-to-gl-style

Converts GeoJSON styled with simplestyle-spec to a GL Style
ISC License
29 stars 6 forks source link

Output a sprite #19

Open samanpwbb opened 8 years ago

samanpwbb commented 8 years ago

This project should output a PNG sprite of variable resolution that uses icons from Maki.

samanpwbb commented 8 years ago

if this project took both geojson and a stylesheet as input, this would be straightforward. Such a tool would be especially powerful if multiple sprites were supported in GL (https://github.com/mapbox/mapbox-gl-js/issues/358) because then it'd be possible to overlay full range of icons from maki without dropping or trying to re-write the source style's sprite.

jfirebaugh commented 8 years ago

I think we need to solve https://github.com/mapbox/mapbox-gl-style-spec/issues/220 or otherwise have a way for a style to embed icons directly in the style, with no external references. Otherwise there is no way to actually support the desired usage (new mapboxgl.Map({style: convert(geoJSON)})) because the converted style would have to reference static hosted assets somewhere.