From 980357177dc492922e6a9f152e94f7c1b30fc167 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 30 Apr 2013 18:02:52 -0300 Subject: Forward polygon click events to the map --- gmap_arcgis.js | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.3