Add sledrun layer to map.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Thu, 24 May 2018 21:53:57 +0000 (23:53 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Thu, 24 May 2018 21:53:57 +0000 (23:53 +0200)
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]),