From 274bd83207dd1dfd710685f6190694faf6647959 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Fri, 17 May 2019 20:51:20 +0000 Subject: [PATCH] Make wrmap.js compatible with jQuery v3.3.1 (no longer using deprecated context property). --- wrmap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrmap.js b/wrmap.js index 8b7607b..ab45a89 100644 --- a/wrmap.js +++ b/wrmap.js @@ -319,7 +319,7 @@ function init_wrmap(i, jq_map) { jq_map.width(width); jq_map.height(height); /* - var map = new OpenLayers.Map(jq_map.context, { + var map = new OpenLayers.Map(jq_map[0], { projection: EPSG3857, displayProjection: EPSG4326, units: "m", @@ -337,7 +337,7 @@ function init_wrmap(i, jq_map) { }); var map = new ol.Map({ - target: jq_map.context, + target: jq_map[0], layers: [ layer_map, layer_sledrun -- 2.39.5