diff options
Diffstat (limited to 'htdocs/leafletjs/Leaflet.streetlabels.js')
-rw-r--r-- | htdocs/leafletjs/Leaflet.streetlabels.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/htdocs/leafletjs/Leaflet.streetlabels.js b/htdocs/leafletjs/Leaflet.streetlabels.js index 1fb2754..724c585 100644 --- a/htdocs/leafletjs/Leaflet.streetlabels.js +++ b/htdocs/leafletjs/Leaflet.streetlabels.js @@ -117,8 +117,7 @@ L.StreetLabels = L.LabelTextCollision var textLength = ctx.measureText(layerText).width; ctx.strokeText(layerText, p.x + offsetX - textLength / 2, p.y + offsetY); ctx.fillText(layerText, p.x + offsetX - textLength / 2, p.y + offsetY); - } - if (layer instanceof L.Polyline) { + } else if (layer instanceof L.Polyline) { /** * Render text alongside the polyline * **/ |