The OpenLayers image path is set now.
[philipp/winterrodeln/mediawiki_extensions/wrmap.git] / wrmap.body.php
index 546a778507e4d142d5b894526eecd359e4831155..e0f7d2ca380319678b93ff77873f3fe69afd9966 100644 (file)
@@ -27,7 +27,8 @@ class WrMap {
                $parserOutput->addModules('ext.wrmap');
                
                // Create <div/> element where the map is placed in
-               $output = "<div class=\"wrmap\" style=\"width: 100%; height: 450px; border-style:none;\" data-center-lon=\"$longitude_s\" data-center-lat=\"$latitude_s\" data-zoom=\"$zoom\">\n";
+               global $wgExtensionAssetsPath;
+               $output = "<div class=\"wrmap\" style=\"width: 100%; height: 450px; border-style:none;\" data-center-lon=\"$longitude_s\" data-center-lat=\"$latitude_s\" data-zoom=\"$zoom\" data-img-path=\"$wgExtensionAssetsPath/wrmap/openlayers/img/\">\n";
                foreach ($sledruns as $sledrun) {
                        $lat = $sledrun['position_latitude'];
                        $lon = $sledrun['position_longitude'];