aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmap_arcgis.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index aa17af4..76142ad 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -517,6 +517,12 @@ function gmapArcgis(config) {
// Show polygon
params.overlay[i].setMap(self.map);
+
+ // Forward all click events to the map
+ // Somehow a polygon returned from a query is blocking all map clicks
+ google.maps.event.addListener(params.overlay[i], 'click', function(point) {
+ google.maps.event.trigger(self.map, 'click', point);
+ });
}
return params.overlay;