X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/mediawiki_extensions/wrmap.git/blobdiff_plain/1c34452c6c05bef7ac3771bf700f643fb18869ab..274bd83207dd1dfd710685f6190694faf6647959:/wrmap.js 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