22
Views
1
Comments
[Google Maps Library] Getting access to the "Info Window" in GMaps
google-maps-mobile
Reactive icon
Forge asset by Labs
Application Type
Reactive

I'm probably missing some already available component but: by default, the Map widget will evoke a little tooltip-like window with information about a certain landmark - that's already displayed and marked also by default - whenever said landmark is clicked on the map. As such:

I would simply like to ask if it is at all possible to have access to this data and if you could suppress this behaviour. Say by opening a sidebar with the same information and a few additions to it. And if not, I would also like to know if there is some way to modify the content of this "Info Window".

UserImage.jpg
Fabiano Peralta

Hello Pedro,

The default Map widget also includes an Info Window that is displayed when a marker is clicked. To customize the Info Window behavior, you can use the OnMarkerClick client action of the Map widget to handle the click event and update the content of the Info Window or display a custom sidebar with the same information.

To suppress the default Info Window behavior, you can set the ShowInfoWindow input parameter of the OnMarkerClick client action to false, which will prevent the default Info Window from appearing.

To modify the content of the Info Window, you can use the SetInfoWindowContent client action to update its content with your custom data. You can also use the ShowInfoWindow client action to display the Info Window or a custom sidebar with the updated content.

Regards

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