aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmap_arcgis.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 1ba760c..f03a241 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -492,9 +492,9 @@ function gmapArcgis(config) {
// Fit map to polygon bounds
if (params.fitBounds != undefined && params.fitBounds == true) {
- var bounds = params.overlay[i].getBounds();
- var zoom = self.getZoomByBounds(bounds);
- var center = bounds.getCenter();
+ var bounds = params.overlay[i].getBounds();
+ var zoom = self.getZoomByBounds(bounds);
+ var center = bounds.getCenter();
self.map.setZoom(zoom);
self.setCenter(center, true);