413
Views
3
Comments
Solved
[Google Maps Web] Trigger Screen action on click of Marker event 
Question
google-maps-web
Web icon
Forge asset by Labs

Dear All, 

I'm trying to run a screen action if the marker on google map is clicked


I have 

1) Added map

2) Added a marker and marker event with links to the map. 

3)a screen action which should be triggered on click 

4) Marker event triggering event given as 'click'


Kindly help me on linking the click on marker to the screen action, Ideally I will be passing an input variable to the screen action based on the marker clicked. 


Thanks and Regards,

Priya


 


2024-03-25 06-19-08
Harlin Setiadarma
Solution

On web apps, you can use button with named id and visible = false.

Link screen action to that button.

Then using javascript you can simulate button click.

2023-04-28 15-39-13
Artemio Sampayo Olivares

Harlin Setiadarma wrote:

On web apps, you can use button with named id and visible = false.

Link screen action to that button.

Then using javascript you can simulate button click.


Hey Harlin


Do you have soem example with this?


Thank you

2024-03-25 06-19-08
Harlin Setiadarma

I don't have time for working example oml.

This thread is old, I have found a better way to call screen action from javascript.

You can use FakeNotifyWIdget from RichWidget (add dependency first)

Put FakeNotifyWIdget on your screen, and set it's name and destination for on notify event.

Then you can call it in Javascript:

"OsNotifyWidget('"+myfakenotify.id+"', 'optional message')"

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.