summaryrefslogtreecommitdiff
path: root/htdocs/mapscript.js
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/mapscript.js')
-rw-r--r--htdocs/mapscript.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js
index b5417f1..03aa222 100644
--- a/htdocs/mapscript.js
+++ b/htdocs/mapscript.js
@@ -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,