Do not show label on path for polygons
This commit is contained in:
parent
b9986f0b42
commit
4c5f7f9a85
@ -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
|
||||
* **/
|
||||
|
Loading…
Reference in New Issue
Block a user