From: Philipp Spitzer Date: Fri, 17 May 2019 20:51:20 +0000 (+0000) Subject: Make wrmap.js compatible with jQuery v3.3.1 (no longer using deprecated context prope... X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/mediawiki_extensions/wrmap.git/commitdiff_plain/274bd83207dd1dfd710685f6190694faf6647959 Make wrmap.js compatible with jQuery v3.3.1 (no longer using deprecated context property). --- 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