KMatle Expert Licensed User Longtime User Jul 24, 2016 #1 I've added one marker and update the position plus change the camera position to that location. As it seems, there is no redraw of the map which causes the same marker to be drawn multiple times: Zooming the map with +/- does a redraw (= ok) Do I miss something? Code: Code: Copy Dim cp As CameraPosition cp.Initialize(Row(2), Row(1), 18) If MyMarker.IsInitialized = False Then MyMarker=gmap.AddMarker(cp.Target.Latitude,cp.Target.Longitude,"Here you are") End If MyMarker.Position=cp.Target gmap.MoveCamera(cp)
I've added one marker and update the position plus change the camera position to that location. As it seems, there is no redraw of the map which causes the same marker to be drawn multiple times: Zooming the map with +/- does a redraw (= ok) Do I miss something? Code: Code: Copy Dim cp As CameraPosition cp.Initialize(Row(2), Row(1), 18) If MyMarker.IsInitialized = False Then MyMarker=gmap.AddMarker(cp.Target.Latitude,cp.Target.Longitude,"Here you are") End If MyMarker.Position=cp.Target gmap.MoveCamera(cp)
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2016 #2 Can you create a small example and upload the full project? Upvote 0
jmon Well-Known Member Licensed User Longtime User Jul 25, 2016 #3 What I do to bypass this problem is to move the camera to another location and the back to same location.. Upvote 0
What I do to bypass this problem is to move the camera to another location and the back to same location..
KMatle Expert Licensed User Longtime User Jul 25, 2016 #4 Here you go. Just click on "Move marker" when the map shows up to see the effect I mean. Attachments Marker.zip Marker.zip 2.5 KB · Views: 314 Upvote 0
R rboeck Well-Known Member Licensed User Longtime User Jul 25, 2016 #5 Hi, i could solve your problem with this trick: use Addmarker2 with an custom icon, in paint.net i made the picturesize the double size as really needed; i have attached a file to look for. i didnt check, if i would work with other sizes, but it works in this combination. Attachments raiba.png 2.6 KB · Views: 483 Upvote 0
Hi, i could solve your problem with this trick: use Addmarker2 with an custom icon, in paint.net i made the picturesize the double size as really needed; i have attached a file to look for. i didnt check, if i would work with other sizes, but it works in this combination.