aboutsummaryrefslogtreecommitdiff
path: root/gmap_arcgis.js
diff options
context:
space:
mode:
Diffstat (limited to 'gmap_arcgis.js')
-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;
}
}