Render labels for polygons

This commit is contained in:
Markus Koch 2020-04-20 18:01:32 +02:00
parent 4c5f7f9a85
commit 26972c366e
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ var streetLabelsRenderer = new L.StreetLabels({
collisionFlg: true, collisionFlg: true,
propertyName: 'name', propertyName: 'name',
showLabelIf: function (layer) { showLabelIf: function (layer) {
return layer.geometry.type == "LineString"; return (layer.geometry.type == "LineString"|| layer.geometry.type == "Polygon");
}, },
fontStyle: { fontStyle: {
dynamicFontSize: true, dynamicFontSize: true,