B4J Question GMAP inside of PANE click event

ntuser04

Member
Licensed User
I am using the GoogleMaps example for B4J and I am trying to get the click event for the gmap that is in the pane. I am able to get the pane's click event from the designer but I do not know how to get the gmap click event to get the lat and long numbers. Please assists.

B4X:
    gmap.Initialize2("gmap", Null, Main.API_KEY)
    pnlMap.AddView(gmap.AsPane, 0, 0, pnlMap.Width, pnlMap.Height)
    Wait For gmap_Ready
    Return gmap.IsReady
 

ntuser04

Member
Licensed User
I found the solution. Instead of going into the designer and generating the member for gmap (which didn't exists in designer because I had been creating it in the code), I just needed to use the Private Sub EventName_Click (Point As LatLng). Changing out EventName to gmap.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…