Add OpenLayers 4.6.5 debug CDN URLs.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 23 May 2018 21:47:30 +0000 (23:47 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 23 May 2018 21:47:30 +0000 (23:47 +0200)
wrmap.body.php

index 0d6020bf00f5a389f1f02977613dbce5108afd19..97a8774470f2cdefda4904bbfcebcf50f41d1ea2 100644 (file)
@@ -399,7 +399,8 @@ class WrBaseMap {
                assert(in_array($tagname, array('wrmap', 'wrgmap')));
 
                $parserOutput = $parser->getOutput();
                assert(in_array($tagname, array('wrmap', 'wrgmap')));
 
                $parserOutput = $parser->getOutput();
-               // $parserOutput->addHeadItem('<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyABu68dyE3dB_l-UfB_WuyoPAsSTthI4gc"></script>', 'googlemaps');
+               $parserOutput->addHeadItem('<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.5/ol-debug.js"></script>', 'openlayers_js');
+               $parserOutput->addHeadItem('<link rel="stylesheet" type="text/css" src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.5/ol-debug.css">', 'openlayers_css');
                $parserOutput->addModules('ext.wrmap');
 
                // append all sledruns as icon
                $parserOutput->addModules('ext.wrmap');
 
                // append all sledruns as icon