Android Question WebView click event on Google Maps tracks

Didier9

Well-Known Member
Licensed User
Longtime User
With reference to Klaus' GPS Example (using warwound WebViewExtras library):

Let's assume that a captured path is displayed on the map (Google Maps through webview).

It seems that clicking on a clear area of the map (away from the track) correctly generates a Click event (and a cursor is displayed) but clicking on or near the path itself does not seem to generate any event (at least none of the events that are declared in the example).

I have an app based on Klaus' GPS example and I would like to be able to click anywhere on the map and generate the click event. Can this be done?

Related: is there a list of all events supported by the webview? I can't seem to be able to locate it in the documentation.

Thanks in advance!
 

Didier9

Well-Known Member
Licensed User
Longtime User
I made this quite some time ago.
I am about leaving for a travel til the end of the week.
I will have a deeper look at it on monday.
I put the link of this thread in my to do list.

Thank you Klaus, I appreciate it. Have a good trip!
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I had a close look at the program.
There are different posiibilities in the program.
Depending on the settings of the map draggable property, either MouseDown, MouseMove and MouseUp events are set or the Click event is set.
Depending on the settings, the click event is consumed by the GoogleMaps.

You see this in the MapDisp routine.
 
Upvote 0

Tayfur

Well-Known Member
Licensed User
Longtime User

The answer to your problem might be in the following example.
https://www.b4x.com/android/forum/threads/google-maps-on-webview-no-api-key.70308/#post-450649
 
Upvote 0