diff options
Diffstat (limited to 'gmap_arcgis.js')
-rw-r--r-- | gmap_arcgis.js | 11 |
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; |