mapbox / tilelive-overlay

Render GeoJSON features with simplestyle styles in a tilelive pipeline
ISC License
4 stars 13 forks source link

Use mapnik scale factor #14

Open yhahn opened 10 years ago

yhahn commented 10 years ago

Currently polyline strokes are not width-doubled. Blue sky:

For a rainy day.

cc @springmeyer @tmcw

springmeyer commented 10 years ago

SVG would be doable, but for the current iteration I pushed for marker caching in-front of Mapnik because Mapnik does not currently have caching internally for SVG - we literally render the SVG from scratch for each feature processed. The task on the mapnik side would be to selectively cache a rendered SVG for a symbolizer like <MarkerSymbolizer file="some.svg" /> at 1x and 2x scale_factor while avoiding caching a render SVG for a symbolizer like <MarkerSymbolizer file="some.svg" opacity="[some float value]" fill="[another float value]"/ ... etc ... > since the combinations could be infinite.