diff --git a/js/id/svg/labels.js b/js/id/svg/labels.js index a76a96afd..b5e1cce05 100644 --- a/js/id/svg/labels.js +++ b/js/id/svg/labels.js @@ -371,7 +371,7 @@ iD.svg.Labels = function(projection, context) { entitywidth = projection(extent[1])[0] - projection(extent[0])[0], rect; - if (!centroid || entitywidth < 20) return; + if (isNaN(centroid[0]) || entitywidth < 20) return; var iconX = centroid[0] - (iconSize/2), iconY = centroid[1] - (iconSize/2),