aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMartin Wright <martin@mysociety.org>2018-11-30 10:40:10 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-12-03 10:53:00 +0000
commit27f6112f0fda2efa0037b76e70e32eda9f9abb23 (patch)
tree9d5569c7d62eec2875a22f9d32f4f4b3afdd3905 /web
parentd9f56a0556c1725f9787ad009d527057a4f608d2 (diff)
Don't draw a pin for a problem with no location.
Diffstat (limited to 'web')
-rw-r--r--web/js/map-OpenLayers.js3
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.