Author: jleroux
Date: Tue Feb 8 13:56:05 2011
New Revision: 1068394
URL:
http://svn.apache.org/viewvc?rev=1068394&view=revLog:
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