As you can see in the image, there are several polygons that intersect. The DataInteger field of each polygon has a different value to be able to differentiate them.
When I click on the map, it sends me to call the TMSFNCGoogleMapsPolyElementClick procedure, but it only brings me the value of the highest polygon. Is there a way to get the integer value of all the polygons that intersect according to the coordinates?
procedure Tfrm_mapa.TMSFNCGoogleMapsPolyElementClick(Sender: TObject;
AEventData: TTMSFNCMapsEventData);
begin
if Assigned(AEventData.PolyElement) then
begin
AEventData.PolyElement.DataInteger;
end;
end;
Thanks for replying, sorry, but where do I find which version of the component I'm using? and also the IsPointInArea and PolyElement.ContainsPoint functions where can I find them? Could you help me with an example, please?
Thank you very much, I already updated the version of the component and I already checked the recommended link and I already managed to get the information I required.