aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenStreetMap.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-14 15:40:34 +0000
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-14 15:40:34 +0000
commit91ac9486a1fd2eeb65fc9c6d2fccc1b170cfc16f (patch)
tree2d0ddea3e0f8a870ebe910c51aa2d0807f50eeb8 /web/js/map-OpenStreetMap.js
parent844b21d06083368048a0ea2c20baffc7d06b0449 (diff)
Tweaks to OSM map module, fix for truncated co-ords.
Diffstat (limited to 'web/js/map-OpenStreetMap.js')
-rw-r--r--web/js/map-OpenStreetMap.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/js/map-OpenStreetMap.js b/web/js/map-OpenStreetMap.js
index 04237e075..1eae62a9a 100644
--- a/web/js/map-OpenStreetMap.js
+++ b/web/js/map-OpenStreetMap.js
@@ -8,15 +8,15 @@ YAHOO.util.Event.onContentReady('map', function() {
],
displayProjection: new OpenLayers.Projection("EPSG:4326")
});
- var streetview = new fixmystreet.map_type("", {
+ var osm = new fixmystreet.map_type("", {
zoomOffset: 14,
numZoomLevels: 4
});
- map.addLayer(streetview);
+ map.addLayer(osm);
- var centre = new OpenLayers.LonLat( fixmystreet.easting, fixmystreet.northing );
+ var centre = new OpenLayers.LonLat( fixmystreet.longitude, fixmystreet.latitude );
centre.transform(
- new OpenLayers.Projection("EPSG:27700"),
+ new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()
);
map.setCenter(centre, 2);