Render labels for polygons
This commit is contained in:
parent
4c5f7f9a85
commit
26972c366e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user