You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2011/02/08 15:27:45 UTC

svn commit: r1068413 - /ofbiz/branches/release10.04/framework/common/webcommon/includes/geolocation.ftl

Author: jleroux
Date: Tue Feb  8 14:27:44 2011
New Revision: 1068413

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

Modified:
    ofbiz/branches/release10.04/framework/common/webcommon/includes/geolocation.ftl

Modified: ofbiz/branches/release10.04/framework/common/webcommon/includes/geolocation.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release10.04/framework/common/webcommon/includes/geolocation.ftl?rev=1068413&r1=1068412&r2=1068413&view=diff
==============================================================================
--- ofbiz/branches/release10.04/framework/common/webcommon/includes/geolocation.ftl (original)
+++ ofbiz/branches/release10.04/framework/common/webcommon/includes/geolocation.ftl Tue Feb  8 14:27:44 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