aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/map-OpenStreetMap.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2014-04-01 13:05:38 +0100
committerStruan Donald <struan@exo.org.uk>2014-04-01 13:05:38 +0100
commit2b61987addccca46871b23952ce3508610aee7de (patch)
tree659b75aaafe90a6a18af8aec71de1034a90ba8a8 /src/js/map-OpenStreetMap.js
parent0bcbd779222f31c8115009a73ba6e1d70ade28c6 (diff)
use OpenStreetMap tiles if not in UK
Adds a config option for isUK and if not set then loads the openstreetmap map rather than the UKs bing/OSM hybrid that uses our own tile server. This fixes the issue of people outside the UK getting a grey map.
Diffstat (limited to 'src/js/map-OpenStreetMap.js')
-rw-r--r--src/js/map-OpenStreetMap.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/js/map-OpenStreetMap.js b/src/js/map-OpenStreetMap.js
index 7467653..122989d 100644
--- a/src/js/map-OpenStreetMap.js
+++ b/src/js/map-OpenStreetMap.js
@@ -3,11 +3,14 @@ function set_map_config(perm) {
if ($('#map_permalink').length) {
permalink_id = 'map_permalink';
}
+ fixmystreet.nav_control = new OpenLayers.Control.Navigation({});
fixmystreet.controls = [
+ new OpenLayers.Control.Attribution(),
new OpenLayers.Control.ArgParser(),
- //new OpenLayers.Control.Navigation(),
+ fixmystreet.nav_control,
new OpenLayers.Control.PanZoomFMS({id: 'fms_pan_zoom' })
];
+ fixmystreet.map_type = OpenLayers.Layer.OSM.Mapnik;
}
// http://www.openstreetmap.org/openlayers/OpenStreetMap.js (added maxResolution)