diff options
author | Struan Donald <struan@exo.org.uk> | 2012-05-25 15:50:53 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-05-25 15:50:53 +0100 |
commit | 1c6a922a5d731a6078825e9f1e7058338162772b (patch) | |
tree | d09aeebab8f0ee0d24579410c5f4519c63abf41e /www/js/map-OpenLayers.js | |
parent | c0832c0e84c873004b185c8804e5736dca409693 (diff) |
fix a few more places where we need FMS_URL
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r-- | www/js/map-OpenLayers.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js index 6b31c53..c462849 100644 --- a/www/js/map-OpenLayers.js +++ b/www/js/map-OpenLayers.js @@ -47,7 +47,7 @@ function fixmystreet_onload() { var area = new OpenLayers.Layer.Vector("KML", { strategies: [ new OpenLayers.Strategy.Fixed() ], protocol: new OpenLayers.Protocol.HTTP({ - url: "/mapit/area/" + fixmystreet.area + ".kml?simplify_tolerance=0.0001", + url: CONFIG.FMS_URL + "/mapit/area/" + fixmystreet.area + ".kml?simplify_tolerance=0.0001", format: new OpenLayers.Format.KML() }) }); @@ -105,7 +105,7 @@ function fixmystreet_onload() { fixmystreet.bbox_strategy = new OpenLayers.Strategy.BBOX({ ratio: 1 }); pin_layer_options.strategies = [ fixmystreet.bbox_strategy ]; pin_layer_options.protocol = new OpenLayers.Protocol.HTTP({ - url: '/ajax', + url: CONFIG.FMS_URL + '/ajax', params: fixmystreet.all_pins ? { all_pins: 1 } : { }, format: new OpenLayers.Format.FixMyStreet() }); @@ -136,7 +136,7 @@ function fixmystreet_onload() { var popup = new OpenLayers.Popup.FramedCloud("popup", feature.geometry.getBounds().getCenterLonLat(), null, - feature.attributes.title + "<br><a href=/report/" + feature.attributes.id + ">More details</a>", + feature.attributes.title + "<br><a href=" + CONFIG.FMS_URL + "/report/" + feature.attributes.id + ">More details</a>", { size: new OpenLayers.Size(0,0), offset: new OpenLayers.Pixel(0,-40) }, true, onPopupClose); feature.popup = popup; |