Ticket #11094: openlayers.diff

File openlayers.diff, 771 bytes (added by stuartk, 16 years ago)

Open Layers javascript file patch

  • openlayers.js

     
    131131          {{ module }}.map.zoomTo({{ point_zoom }});
    132132      }
    133133    } 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 }});
    135136    }
    136137    // This allows editing of the geographic fields -- the modified WKT is
    137138    // written back to the content field (as EWKT, so that the ORM will know
Back to Top