Ticket #9299: zoomlevel_fix.diff
File zoomlevel_fix.diff, 649 bytes (added by , 16 years ago) |
---|
-
contrib/gis/templates/gis/admin/openlayers.js
127 127 } 128 128 // Zooming to the bounds. 129 129 {{ module }}.map.zoomToExtent(admin_geom.geometry.getBounds()); 130 131 if ({{ module }}.is_point){ 132 {{ module }}.map.zoomTo({{ module }}.map.getZoom()-2); 133 } 134 130 135 } else { 131 136 {{ module }}.map.setCenter(new OpenLayers.LonLat({{ default_lon }}, {{ default_lat }}), {{ default_zoom }}); 132 137 }