jamesdales / IconMapSupport

MIT License
4 stars 1 forks source link

GEOJSON Label splits on both part of polygon #3

Closed kadirkkkk closed 1 year ago

kadirkkkk commented 1 year ago

I'm working on Turkey map, in GEOJSON file İSTANBUL city has two parts as asian and european side. Althought İstanbul has just one value label (ex: sales amount), label shows on both sides and this seems like repetition on the end user side. (tested on vers. 3.2.17)

image image

jamesdales commented 1 year ago

This shouldn't be the case - it should only be creating one label per feature - assuming that you have a multipolygon in your geojson file containing the two polygons for istanbul. If it's two separate features, then it will create two labels.

Are you able to share the geojson file?

kadirkkkk commented 1 year ago

TR_Cities_polygon.zip Thanks for responsePolygon file is attached 8 Haziran 2023 Perşembe 09:50:19 GMT+3 tarihinde, James Dales @.***>şunu yazdı:

This shouldn't be the case - it should only be creating one label per feature - assuming that you have a multipolygon in your geojson file containing the two polygons for istanbul. If it's two separate features, then it will create two labels.

Are you able to share the geojson file?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jamesdales commented 1 year ago

Thanks for sharing the file. Yes it appears Istanbul is repeated within the file:

image

Merging these as a single multipolygon should work. Try the file within this zip:

merged.zip

kadirkkkk commented 1 year ago

I was so embarrassed, i just thought it was multipolygon. Sorry for disturbing you. I'm glad you helped me asap