diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-03-04 14:28:29 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-03-04 14:28:33 +0000 |
commit | 6352aa0e569b81a71d01437c26425ed4cc45ad23 (patch) | |
tree | 499f6452b9fd2dac847b0aa62c89415c7dc0aa67 | |
parent | 86827c23436fef52b6b38d3fbc357fb0bf20f0c6 (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.
-rw-r--r-- | web/cobrands/bathnes/js.js | 2 |
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()); } }; |