Render labels for polygons

This commit is contained in:
Markus Koch 2020-04-20 18:01:32 +02:00
parent 4c5f7f9a85
commit 26972c366e

View File

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