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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

jleroux@apache.org
Author: jleroux
Date: Tue Feb  8 14:03:57 2011
New Revision: 1068403

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


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=1068403&r1=1068402&r2=1068403&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:03:57 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