aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map/OSM.pm
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 /perllib/FixMyStreet/Map/OSM.pm
parent844b21d06083368048a0ea2c20baffc7d06b0449 (diff)
Tweaks to OSM map module, fix for truncated co-ords.
Diffstat (limited to 'perllib/FixMyStreet/Map/OSM.pm')
-rw-r--r--perllib/FixMyStreet/Map/OSM.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/Map/OSM.pm b/perllib/FixMyStreet/Map/OSM.pm
index ccbb3ca53..99904a328 100644
--- a/perllib/FixMyStreet/Map/OSM.pm
+++ b/perllib/FixMyStreet/Map/OSM.pm
@@ -15,13 +15,12 @@ sub header_js {
return '
<script type="text/javascript" src="http://openlayers.org/api/OpenLayers.js"></script>
<script type="text/javascript" src="/js/map-OpenStreetMap.js"></script>
-<script type="text/javascript" src="/js/OpenLayers.Projection.OrdnanceSurvey.js"></script>
';
}
# display_map Q PARAMS
# PARAMS include:
-# EASTING, NORTHING for the centre point of the map
+# latitude, longitude for the centre point of the map
# TYPE is 1 if the map is clickable, 2 if clickable and has a form upload,
# 0 if not clickable
# PINS is array of pins to show, location and colour
@@ -39,8 +38,8 @@ sub display_map {
$out .= <<EOF;
<script type="text/javascript">
var fixmystreet = {
- 'easting': $params{easting},
- 'northing': $params{northing},
+ 'latitude': $params{latitude},
+ 'longitude': $params{longitude},
'map_type': OpenLayers.Layer.OSM.Mapnik
}
</script>