Google maps, trigger event after click on marker

Hi, I'm using the google maps Forge component. and I'm adding the map marker in the preparation from a list that has the place id, longitude and latitude, then I'm adding a marker event, I don't know what's the logic to be used to get the id of that place, and trigger another event to populate the data of it.

 I checked the demo but still I don't know how to trigger an event to use the ajax refresh or even pass that id or assign it to another var.


this topic is very similar to this:

It's the same thing?