perliedman / ocad2geojson

JavaScript OCAD file reader and exporter for GeoJSON, SVG and Mapbox Style Spec
https://www.liedman.net/ocad2geojson/
GNU Affero General Public License v3.0
39 stars 4 forks source link

Correct generation of text-anchor in mapbox style #2

Closed mpickering closed 4 years ago

mpickering commented 4 years ago

For the text-anchor is the justification is "center" is should be omitted from the text-anchor name. For example, "top" is correct rather than "top-center"

See: https://docs.mapbox.com/help/troubleshooting/optimize-map-label-placement/#label-density

Fixes #1

perliedman commented 4 years ago

Hm, good catch, that might explain some weird text positioning I have seen but never got around to look into.