Add polyfill for Internet Explorer.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Sat, 16 Jan 2021 22:07:26 +0000 (23:07 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Sat, 16 Jan 2021 22:07:26 +0000 (23:07 +0100)
wrmap.body.php

index 7055b7589a0e8f86ad19e9c07ad53252efb4ec16..0daaaea8fb54cfdbc41e9103ca888419ccc2cd69 100644 (file)
@@ -399,6 +399,8 @@ class WrBaseMap {
                assert(in_array($tagname, array('wrmap', 'wrgmap')));
 
                $parserOutput = $parser->getOutput();
+               // Polyfill für Internet Explorer
+               $parserOutput->addHeadItem('<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,fetch"></script>', 'polyfill_ie');
                // OpenLayers 6.5.0 does not work with Internet Explorer, see https://github.com/openlayers/openlayers/issues/11870
                $parserOutput->addHeadItem('<script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.4.3/build/ol.js"></script>', 'openlayers_js');
                $parserOutput->addHeadItem('<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.5.0/css/ol.css">', 'openlayers_css');