Select to view content in your preferred language

MultiPolygon via ArcGIS REST API

6334
11
Jump to solution
04-16-2019 12:04 PM
MarkusÅfelt
New Contributor III

Hi,

Is it possible to use addFeatures with MultiPolygon geometry? I'm using JS API 4.10 and I'm trying to change the geometry to Polygon. Is this right way do it or is there another way? Example is appreciated.

Br,

Markus

11 Replies
MarkusÅfelt
New Contributor III

Finally found the problem..... it was on the JS api side when I was running though array with .map.

So I changed to .flatMap() and it started to work.

Thanks your help guys.

0 Kudos
Egge-Jan_Pollé
MVP Regular Contributor

OK - good to hear the problem is solved 🙂