82
Views
3
Comments
Solved
[Google Maps Library] How to obtain the instantiated MapId?
google-maps-mobile
Reactive icon
Forge asset by Labs
Application Type
Mobile, Reactive

Many of the examples specific to the click events using the $parameters.MapId to add click events to the instantiated map.  How can you set or obtain the id of the instantiated map to use in other client actions or within custom JS? 

UserImage.jpg
Tim Pender
Solution

Thanks for pointing me in the right direction!  While that question wasn't directly related I was able to find the answer to what I was looking for. 


I needed to add the MapId during initialization as shown below:



Then I needed to add the MapId as a parameter to be passed into the JavaScript element.  


Thanks again! 


2021-06-02 20-50-04
Márcio Carvalho

No problem! I had the same situation! :) After this :)

2021-06-02 20-50-04
Márcio Carvalho

Please, is this related to your problem or solution to your problem?

https://www.outsystems.com/forums/discussion/46524/click-event/


Thanks! :)

UserImage.jpg
Tim Pender
Solution

Thanks for pointing me in the right direction!  While that question wasn't directly related I was able to find the answer to what I was looking for. 


I needed to add the MapId during initialization as shown below:



Then I needed to add the MapId as a parameter to be passed into the JavaScript element.  


Thanks again! 


2021-06-02 20-50-04
Márcio Carvalho

No problem! I had the same situation! :) After this :)

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