From 4c24ddab618e817012b8edcdc78e8cccb1793939 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 9 Apr 2013 19:06:38 -0300 Subject: Make bounds optional at addMarkers --- gmap_arcgis.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gmap_arcgis.js b/gmap_arcgis.js index bc8674c..5689e6b 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -232,8 +232,7 @@ function gmapArcgis(config) { // Add makers to the map addMarkers: function(element) { - var bounds = this.map.getBounds(); - var self = this; + var self = this; if (this.config['markers'][element].overlay != undefined) { this.toggleMarkers(element); @@ -249,8 +248,8 @@ function gmapArcgis(config) { // Query parameters var query = { returnGeometry: true, - geometry: bounds, - where: (this.config['markers'][element].where != undefined) ? this.config['markers'][element].where : '1=1', + geometry: (this.config['markers'][element].bounds != undefined) ? this.config['markers'][element].bounds : undefined, + where: (this.config['markers'][element].where != undefined) ? this.config['markers'][element].where : '1=1', outFields: this.config['markers'][element].fields, }; -- cgit v1.2.3