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 14:56:05 UTC

svn commit: r1068394 - /ofbiz/trunk/framework/common/webcommon/includes/geolocation.ftl

Author: jleroux
Date: Tue Feb  8 13:56:05 2011
New Revision: 1068394

URL: http://svn.apache.org/viewvc?rev=1068394&view=rev
Log:
No needs to set zoom when it's already handled

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=1068394&r1=1068393&r2=1068394&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/geolocation.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/geolocation.ftl Tue Feb  8 13:56:05 2011
@@ -30,7 +30,6 @@ under the License.
             var map = new GMap2(document.getElementById("<#if geoChart.id?has_content>${geoChart.id}<#else>map_canvas</#if>"));
             <#if geoChart.center?has_content>
               map.setCenter(new GLatLng(${geoChart.center.lat?c}, ${geoChart.center.lon?c}), ${geoChart.center.zoom});
-              map.setZoom(15); // 0=World, 19=max zoom in
             <#else>
               <#if geoChart.points?has_content>
                 var latlng = [
@@ -43,7 +42,6 @@ under the License.
                   latlngbounds.extend(latlng[i]);
                 }
                 map.setCenter(latlngbounds.getCenter(), map.getBoundsZoomLevel(latlngbounds) - 1);//reduce bounds zoom level to see all markers
-                map.setZoom(15); // 0=World, 19=max zoom in
               <#else>
                 map.setCenter(new GLatLng(0, 0), 1);
                 map.setZoom(15); // 0=World, 19=max zoom in