Load map style as JSON to pass to react map gl
kylebarron opened this issue · comments
Right now, I'm passing URL strings to react map gl/deck.gl. It would reduce the complexity of nst-guide/osm-liberty-topo to have only two styles: the default (style.json
) and the hybrid (style-hybrid.json
). I should be able to switch between png/webp, meters/feet, and insert the aerial/fstopo layers in JS code instead of manually doing those ahead of time in the JSON styles.
I'd still want a style-hybrid.json
because some layers are styled differently above the aerial imagery.
Fixed with 3f1ed17, but it would still be nice to update this to not have separate webp/png styles