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