aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-04-15 14:07:23 -0300
committerSilvio <silvio@socioambiental.org>2013-04-15 14:07:23 -0300
commitb5b27b56421c21dbdd757c6fef41566eb2b94915 (patch)
tree69f9789d5f7010558297868738e25e52b99f5796
parent21ef9c72208806381e892aa55c58b6d62b10d995 (diff)
downloadgmap_arcgis_js-b5b27b56421c21dbdd757c6fef41566eb2b94915.tar.gz
gmap_arcgis_js-b5b27b56421c21dbdd757c6fef41566eb2b94915.tar.bz2
Adds resultSetCallback marker config
-rw-r--r--gmap_arcgis.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 2a73223..1dfd329 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -232,14 +232,19 @@ function gmapArcgis(config) {
var layer = new gmaps.ags.Layer(this.config['markers'][element].uri);
- // Execute query
- layer.query(query, processResultSet);
-
// Configure infoWindow
this.config['markers'][element].infowindow = new google.maps.InfoWindow({
content: '',
});
+ // Execute query
+ if (this.config['markers'][element].resultSetCallback != undefined) {
+ layer.query(query, this.config['markers'][element].resultSetCallback);
+ }
+ else {
+ layer.query(query, processResultSet);
+ }
+
// Process results
function processResultSet(fset) {
var fs = fset.features;