F foakgul Member Licensed User Longtime User Oct 23, 2015 #1 Hello, Is there a Google Maps marker method for keeping the marker label visible at all times in iOS just like B4A? Specifically I'm looking for the following method but it doesn't exist. marker.InfoWindowShown Thanks!
Hello, Is there a Google Maps marker method for keeping the marker label visible at all times in iOS just like B4A? Specifically I'm looking for the following method but it doesn't exist. marker.InfoWindowShown Thanks!
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2015 #2 Add this sub to GoogleMapsExtra class: Code: Copy Public Sub SetSelectedMarker(Marker As Marker) no.SetField("selectedMarker", Marker) End Sub Setting the selected marker will cause the info window to appear. Upvote 0
Add this sub to GoogleMapsExtra class: Code: Copy Public Sub SetSelectedMarker(Marker As Marker) no.SetField("selectedMarker", Marker) End Sub Setting the selected marker will cause the info window to appear.
F foakgul Member Licensed User Longtime User Oct 23, 2015 #3 I'm getting the following error after adding this sub to GoogleMapsExtra class: Code: Copy [<b4i_googlemapsextra 0x17d6e940> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key selectedMarker. The way I call the routine is: Code: Copy m = gmap.AddMarker2(Point.Latitude, Point.Longitude, "trial", Colors.Red) gextra.SetSelectedMarker(m) Thanks! Upvote 0
I'm getting the following error after adding this sub to GoogleMapsExtra class: Code: Copy [<b4i_googlemapsextra 0x17d6e940> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key selectedMarker. The way I call the routine is: Code: Copy m = gmap.AddMarker2(Point.Latitude, Point.Longitude, "trial", Colors.Red) gextra.SetSelectedMarker(m) Thanks!
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2015 #4 Sorry, the correct code is: Code: Copy Public Sub SetSelectedMarker(Marker As Marker) Dim ngm As NativeObject = gm ngm.SetField("selectedMarker", Marker) End Sub Upvote 0
Sorry, the correct code is: Code: Copy Public Sub SetSelectedMarker(Marker As Marker) Dim ngm As NativeObject = gm ngm.SetField("selectedMarker", Marker) End Sub
Daniel Uribe Member Licensed User Longtime User Feb 24, 2017 #6 Hello everyone! A little question, is there a way to call infowindow marker clic event? like android?: Code: Copy ... Dim oiwcl As OnInfoWindowClickListener oiwcl.Initialize("InfoWindow") gmapextras.SetOnInfoWindowClickListener(gmap, oiwcl) .... Sub InfoWindow_click(Marker1 As Marker) Log("click on infowindow") End Sub Always Thanks a lot!!!!! Upvote 0
Hello everyone! A little question, is there a way to call infowindow marker clic event? like android?: Code: Copy ... Dim oiwcl As OnInfoWindowClickListener oiwcl.Initialize("InfoWindow") gmapextras.SetOnInfoWindowClickListener(gmap, oiwcl) .... Sub InfoWindow_click(Marker1 As Marker) Log("click on infowindow") End Sub Always Thanks a lot!!!!!
Erel B4X founder Staff member Licensed User Longtime User Feb 26, 2017 #7 Please start a new thread for your question. Upvote 0