aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-04-30 13:01:32 -0300
committerSilvio <silvio@socioambiental.org>2013-04-30 13:01:32 -0300
commit5945972e6cc906798bd43c84072f31b7d5b448bf (patch)
treeb93519a34d8c205de202eb94a949b418f6173cf8
parentd9baae41c114446538aac8bc333bb4c321c1c4cb (diff)
downloadgmap_arcgis_js-5945972e6cc906798bd43c84072f31b7d5b448bf.tar.gz
gmap_arcgis_js-5945972e6cc906798bd43c84072f31b7d5b448bf.tar.bz2
Formatting
-rw-r--r--gmap_arcgis.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 1efbaf3..1ba760c 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -454,15 +454,15 @@ function gmapArcgis(config) {
var MIN_ZOOM = map.mapTypes.get(map.getMapTypeId()).minZoom || 0;
var ne = map.getProjection().fromLatLngToPoint(bounds.getNorthEast());
var sw = map.getProjection().fromLatLngToPoint(bounds.getSouthWest());
- var worldCoordWidth = Math.abs(ne.x-sw.x);
- var worldCoordHeight = Math.abs(ne.y-sw.y);
+ var worldCoordWidth = Math.abs(ne.x - sw.x);
+ var worldCoordHeight = Math.abs(ne.y - sw.y);
// Fit padding in pixels
var FIT_PAD = 40;
for (var zoom = MAX_ZOOM; zoom >= MIN_ZOOM; --zoom) {
- if (worldCoordWidth*(1<<zoom)+2*FIT_PAD < $(map.getDiv()).width() &&
- worldCoordHeight*(1<<zoom)+2*FIT_PAD < $(map.getDiv()).height()) {
+ if (worldCoordWidth * (1 << zoom) + 2 * FIT_PAD < $(map.getDiv()).width() &&
+ worldCoordHeight * (1 << zoom) + 2 * FIT_PAD < $(map.getDiv()).height()) {
return zoom;
}
}