For some reasons I am not able to remove and re add marker with different icon image. Is it possible to use Java's seticon property for google maps to change the marker's icon without removing it ? I searched the forum but in one topic Erel says it is easier to remove and re add the icon instead of changing.
Dear all, in my app, which uses library GoogleMaps (2.00), I would like to use my custom marker, which is animated. Using custom marker can be done via command: ... gMap = MainMapFragment.GetMap bmp.Initialize(File.DirAssets, "custom_marker.png") Dim m3 As Marker =...
Public Sub SetMarkerIcon( m As Marker, URL As String)
Private joM As JavaObject = m
joM = joM.RunMethod("getJSObject", Null)
joM.RunMethod("eval", Array($"this.setIcon({icon: "${URL}"});"$))
Private joP As JavaObject
joP.InitializeStatic("com.lynden.gmapsfx.javascript.object.GMapPoint")
' joP.RunMethod("eval", Array($"this.x: 1, this.y: 1;"$))
End Sub
Some time ago I played a lot with GoogleMaps according to this post: https://www.b4x.com/android/forum/threads/problem-with-googlemaps-handling-polygons.84238/#post-533844 The problem was to add other shapes on a googlemap overlapping existing shapes. When you move the mouse over an existing...