The current implementation autowires marker clicks to open info windows. The browser widget captures the click events and sends a variable “marker” with the value of clicked marker’s id to the server, and GoogleMap.changeVariables() then handles the info window stuff.
It’s quite easy to modify the server side component to just yield the marker instead of opening the info window. In GoogleMap.java line 272 or so it says
if (variables.containsKey("marker")) {
clickedMarker = markerSource.getMarker(variables.get("marker").toString());
if (clickedMarker != null && clickedMarker.getInfoWindowContent() != null) {
requestRepaint();
}
}
replace that with something like
if (variables.containsKey("marker")) {
Marker marker = markerSource.getMarker(variables.get("marker").toString());
// TODO Do something with marker
}
Note that you should not set the clickedMarker field, because if it’s set the component will open info window on next repaint.