diff options
author | Markus Koch <markus@notsyncing.net> | 2020-04-20 18:01:32 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-04-20 18:01:32 +0200 |
commit | 26972c366e08a3046f7ddefa8f9b0e1aa46ad717 (patch) | |
tree | 9e4ff12650551be5de545c7fbe941e0c04177d0f | |
parent | 4c5f7f9a85cc1f6df248ac16c3e82bf27fe09786 (diff) | |
download | lifomapserver-26972c366e08a3046f7ddefa8f9b0e1aa46ad717.tar.gz lifomapserver-26972c366e08a3046f7ddefa8f9b0e1aa46ad717.tar.bz2 lifomapserver-26972c366e08a3046f7ddefa8f9b0e1aa46ad717.zip |
Render labels for polygons
-rw-r--r-- | htdocs/mapscript.js | 2 |
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, |