Reducing polygon coordinates AdditionalData

Hello
I am attempting to get polygon coordinates out of additionalData and that works just fine. But is there a way to reduce the data set or display it on the map faster. For example if you try to display the borders of Canada the data set is huge and currently takes several seconds to highlight.

I would appreciate any insight.

Have you tried with Turf.js? Turf.js | Advanced Geospatial Analysis

1 Like

No i have not. But i will definetly try to look into that. Do you know if TomTom offers anything that fulfills the same role as Turf? Or is it just one of the things that requires a seperate library?

Actually there is another way to solve this.
When calling additionalData() you can pass the geometriesZoom option, which should adjust the precision of returned geojson.

2 Likes

I think this one was just what i was looking for.

1 Like