aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-04-30 18:02:52 -0300
committerSilvio <silvio@socioambiental.org>2013-04-30 18:02:52 -0300
commit980357177dc492922e6a9f152e94f7c1b30fc167 (patch)
treefcbaa59551cb0d0f3d3ca247903830b5e54c6ba8
parent846916f53d50d8e8162be9a2c22c842198c49ea1 (diff)
downloadgmap_arcgis_js-980357177dc492922e6a9f152e94f7c1b30fc167.tar.gz
gmap_arcgis_js-980357177dc492922e6a9f152e94f7c1b30fc167.tar.bz2
Forward polygon click events to the map
-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;