genexusgenexus-sd

There is a way to get current map coordinates?


I'm using the grid-mapcontrol (https://wiki.genexus.com/commwiki/servlet/wiki?15309,Maps+Control+Type) to display some pins on the map.

I'd like to get new coordinates when the user moves across the map and show new pins for the new region. Is this possible?

I try the method GridMap.GetVisibleRegion but it returns an empty object.

GeneXus 18 Version: 18.0.169539 U2


Solution

  • The Selection Layer property allows you to obtain the coordinates where the user navigates, it seems to be what you are looking for: https://wiki.genexus.com/commwiki/servlet/wiki?42223,Selection%20Layer%20property

    Note: About GetVisibleRegion method is part of MapsOffline and is not available with google provider: https://wiki.genexus.com/commwiki/servlet/wiki?48363,MapsOffline%20External%20Object