aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-03-04 14:28:29 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-03-04 14:28:33 +0000
commit6352aa0e569b81a71d01437c26425ed4cc45ad23 (patch)
tree499f6452b9fd2dac847b0aa62c89415c7dc0aa67 /web
parent86827c23436fef52b6b38d3fbc357fb0bf20f0c6 (diff)
[BANES] Pin rather than map centre for roadworks.
If the pin is dragged, then category changed, the pin will not be in the centre of the map.
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/bathnes/js.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/bathnes/js.js b/web/cobrands/bathnes/js.js
index a478d71fc..0ed4c3d96 100644
--- a/web/cobrands/bathnes/js.js
+++ b/web/cobrands/bathnes/js.js
@@ -52,7 +52,7 @@ fixmystreet.roadworks.filter = function(feature) {
fixmystreet.roadworks.category_change = function() {
if (fixmystreet.map) {
- fixmystreet.roadworks.show_nearby(null, fixmystreet.map.getCenter());
+ fixmystreet.roadworks.show_nearby(null, fixmystreet.get_lonlat_from_dom());
}
};