Android Question GMaps marker double- or longclick

clooney48

Active Member
Licensed User
Longtime User
Hi all!

With the following code I show all my POIs on Gmaps. When I click on a POI the name of the POI is shown. That works fine. Now I would like to add a Doubleclick or Longclick to perform an action for each POI.

I tried it with a "MarkerLongClick" statement (because "MarkerClick" exists) but apparently this doesn´t exist. I don´t find the correct code (but the click event should work nevertheless).

Thanks for help!

Sub ShowMap
....
gmap.AddMarker(Lat1, Lon1, Name)
....
End Sub


Sub map_MarkerLongClick (SelectedMarker As Marker) As Boolean
Msgbox("YES","")
Return True
End Sub
 

clooney48

Active Member
Licensed User
Longtime User
Dear Erel!

Thanks, but this doesn´t really help me (at least I can´t find it).
I wanted only to know the correct call for a longclick because
Sub map_MarkerLongClick (SelectedMarker As Marker) As Boolean
doesn´t obviously work.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Besides you can use the click event then branch to two options and work on the one the user selects.
(consider it double-click because there you are also clicking twice, aren't you :) _)
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
Hi warwound!

I tried it but I get always the error:

although I have copied the jar and xml file of GoogleMapsExtras to the library directory.


Sounds like you're compiling with a version of android prior to honeycomb.
In the IDE find the 'configure paths' option and then select a newer version of android.jar.

This is unrelated to using GoogleMapsExtras btw.
 
Upvote 0

clooney48

Active Member
Licensed User
Longtime User
So I updated the Android version. Now I get this error:
Parsing code. Error
Error parsing program.
Error description: Unknown type: webviewextras
Are you missing a library reference?
Occurred on line: 157
Dim MapViewerExtra As WebViewExtras
Which library is this?? Didn´t find it. OSMDroid?
 
Upvote 0
Top