Ticket #11094: openlayers.diff
File openlayers.diff, 771 bytes (added by , 16 years ago) |
---|
-
openlayers.js
131 131 {{ module }}.map.zoomTo({{ point_zoom }}); 132 132 } 133 133 } else { 134 {{ module }}.map.setCenter(new OpenLayers.LonLat({{ default_lon }}, {{ default_lat }}), {{ default_zoom }}); 134 var lonlat = new OpenLayers.LonLat({{ default_lon }}, {{ default_lat }}).transform(new OpenLayers.Projection("EPSG:4326"), {{ module }}.map.getProjectionObject()); 135 {{ module }}.map.setCenter(lonlat, {{ default_zoom }}); 135 136 } 136 137 // This allows editing of the geographic fields -- the modified WKT is 137 138 // written back to the content field (as EWKT, so that the ORM will know