diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-12-03 14:17:22 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-12-03 14:17:22 +0000 |
commit | be3c0f5917fe1de5d87442f9341b033e3007c344 (patch) | |
tree | 57092b5d6279ecb7ef03f483a3bb0892b6f004b2 /web/js/map-OpenLayers.js | |
parent | 5d6f81f5aa3b7f532f6b92bda32e175b81707e42 (diff) | |
parent | 27f6112f0fda2efa0037b76e70e32eda9f9abb23 (diff) |
Merge branch 'hide-pin-no-location'
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 826c9eb6b..2a9897e5b 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -188,6 +188,9 @@ $.extend(fixmystreet.utils, { var selected_size = fixmystreet.maps.selected_marker_size(); for (var i=0; i<pins.length; i++) { var pin = pins[i]; + if (pin[1] == 0 && pin[0] == 0) { + continue; + } var loc = new OpenLayers.Geometry.Point(pin[1], pin[0]); if (transform) { // The Strategy does this for us, so don't do it in that case. |