AnsweredAssumed Answered

Multipoint Coordinate Index Array/getPoint

Question asked by khanley52 on Jun 2, 2020
Latest reply on Jun 3, 2020 by rscheitlin

So I am currently able to select multiple parcels with Multipoint and it's currently populating my InfoWindow with the correct information, but I'm wanting the InfoWindow to move to the corresponding parcel when it is highlighted using the location that the user clicked for that particular parcel.

 

Currently I have a variable in a for loop that is housing the coordinate array called multi:

 

var multi = evt.geometry.points[i];

 

This array has the coordinates as [0] and [1], but of course the InfoWindow wants them as X and Y.

 

I've attempted to use the getPoint method to push these coordinates to the X and Y properties so that the InfoWindow can use them, but I can't seem to figure out how to use it properly in this instance.

 

I've tried it like this, but it throws an error saying the property [0] is undefined:

 

var infoloc = evt.geometry.getPoint(multi);

 

I assumed since it just needed an index in the brackets that this would work, but I am mistaken. Can anyone point me in the right direction?

 

Thank you.

Outcomes