[Google Maps Library] How to obtain the instantiated MapId?
Forge component 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? 

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! 


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

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

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


Thanks! :)

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! 


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.