ToastFreeware
/
philipp
/
winterrodeln
/
mediawiki_extensions
/
wrmap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e2ef15
)
"in" operator doesn't work with content of array.
author
Philipp Spitzer
<philipp@spitzer.priv.at>
Thu, 7 Jan 2021 20:27:53 +0000
(21:27 +0100)
committer
Philipp Spitzer
<philipp@spitzer.priv.at>
Thu, 7 Jan 2021 20:27:53 +0000
(21:27 +0100)
wrmap.js
patch
|
blob
|
history
diff --git
a/wrmap.js
b/wrmap.js
index 3731ce8c5847ea193290605fe6b124badc5155da..1ef8a367d06444d0834a77b2d9a42f4567947a76 100644
(file)
--- a/
wrmap.js
+++ b/
wrmap.js
@@
-128,7
+128,7
@@
function init_wrmap(i, jq_map) {
'anfahrt': '#e1e100'
};
let color = feature.get('strokeColor') || line_color[feature.get('type')] || '#e7525b';
- let width = (
feature.get('type') in ['lift', 'anfahrt']
) ? 3 : 6;
+ let width = (
['lift', 'anfahrt'].indexOf(feature.get('type')) >= 0
) ? 3 : 6;
return new ol.style.Style({
stroke: new ol.style.Stroke({
color: color,