ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jler...@apache.org
Subject svn commit: r1068412 - /ofbiz/trunk/framework/common/webcommon/includes/geolocation.ftl
Date Tue, 08 Feb 2011 14:26:08 GMT
Author: jleroux
Date: Tue Feb  8 14:26:07 2011
New Revision: 1068412

URL: http://svn.apache.org/viewvc?rev=1068412&view=rev
Log:
That is the real solution for the zoom here

Modified:
    ofbiz/trunk/framework/common/webcommon/includes/geolocation.ftl

Modified: ofbiz/trunk/framework/common/webcommon/includes/geolocation.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/geolocation.ftl?rev=1068412&r1=1068411&r2=1068412&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/geolocation.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/geolocation.ftl Tue Feb  8 14:26:07 2011
@@ -41,7 +41,7 @@ under the License.
                 for (var i = 0; i < latlng.length; i++) {
                   latlngbounds.extend(latlng[i]);
                 }
-                map.setCenter(latlngbounds.getCenter(), map.getBoundsZoomLevel(latlngbounds)
- 1);//reduce bounds zoom level to see all markers
+                map.setCenter(latlngbounds.getCenter(), Math.min (15, map.getBoundsZoomLevel(latlngbounds)));//reduce
bounds zoom level to see all markers
               <#else>
                 map.setCenter(new GLatLng(0, 0), 1);
                 map.setZoom(15); // 0=World, 19=max zoom in



Mime
View raw message