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:
89c5dce
)
Add sledrun layer to map.
author
Philipp Spitzer
<philipp@spitzer.priv.at>
Thu, 24 May 2018 21:53:57 +0000
(23:53 +0200)
committer
Philipp Spitzer
<philipp@spitzer.priv.at>
Thu, 24 May 2018 21:53:57 +0000
(23:53 +0200)
wrmap.js
patch
|
blob
|
history
diff --git
a/wrmap.js
b/wrmap.js
index 5ccc788693244c57bbd0dc6bdf9978626519a3ef..135ba394305d4a7c940d0b5e340b3eabf6066776 100644
(file)
--- a/
wrmap.js
+++ b/
wrmap.js
@@
-259,10
+259,17
@@
function init_wrmap(i, jq_map) {
});
*/
+ var layer_sledrun_source = new ol.source.Vector({features: features_all});
+ var layer_sledrun = new ol.layer.Vector({
+ source: layer_sledrun_source
+ // style: styleFunction
+ });
+
var map = new ol.Map({
target: jq_map.context,
layers: [
- layer_map
+ layer_map,
+ layer_sledrun
],
view: new ol.View({
center: ol.proj.fromLonLat([lon, lat]),