]> ToastFreeware Gitweb - philipp/winterrodeln/mediawiki_extensions/wrmap.git/blobdiff - wrmap.js
Add OpenLayers 4.6.5 debug CDN URLs.
[philipp/winterrodeln/mediawiki_extensions/wrmap.git] / wrmap.js
index f7c575b8197afd4ca788da7dbb3e761479a42b8e..69196e31a7b74bdca8d0376d66bd43cd77438e33 100644 (file)
--- a/wrmap.js
+++ b/wrmap.js
@@ -1,5 +1,5 @@
 "use strict";
-
+/*
 // "User defined" popup class to be able to specify a minimum size for the popup,
 // so that Safari 7.0 displays it correctly (see ticket #89).
 OpenLayers.Popup.WrInfo = OpenLayers.Class(OpenLayers.Popup.FramedCloud, {
@@ -63,18 +63,18 @@ function init_wrmap(i, jq_map) {
        // ----------------
        // // Google (since about 19th of November 2015 this doesn't work anymore - white background)
        // // see https://github.com/openlayers/openlayers/issues/1450
-       // var layer_map = new OpenLayers.Layer.Google("Google Physical", {
-       //      type: google.maps.MapTypeId.TERRAIN
-       // });
+       var layer_map = new OpenLayers.Layer.Google("Google Physical", {
+               type: google.maps.MapTypeId.TERRAIN
+       });
 
        // // Alternative: OSM map
        // var layer_map = new OpenLayers.Layer.OSM();
        
        // Microsoft Bing Maps
-       var layer_map = new OpenLayers.Layer.Bing({
-               type: "Road",
-               key: "AgPH3SlIXAwajrJKf0FORQyhTqsP8KIlvtN6RKfvxe6fOB6q6-HFmg8EOFm7LSOA",
-               tileOptions: {crossOriginKeyword: null}});
+       // var layer_map = new OpenLayers.Layer.Bing({
+       //      type: "Road",
+       //      key: "AgPH3SlIXAwajrJKf0FORQyhTqsP8KIlvtN6RKfvxe6fOB6q6-HFmg8EOFm7LSOA",
+       //      tileOptions: {crossOriginKeyword: null}});
 
        // // Alternative: Base map
        // // see: http://www.basemap.at
@@ -254,7 +254,7 @@ function init_wrmap(i, jq_map) {
                center: new OpenLayers.LonLat(lon, lat).transform(EPSG4326, EPSG3857),
                zoom: zoom
        });
-       
+
 
        // add features
        // if this would be done before the layer is added to the map, the features are not added
@@ -341,11 +341,13 @@ function init_wrmap(i, jq_map) {
                }
        }));
 }
-
+*/
 
 function init_wrmaps() {
+       /*
        var jq_maps = $('.wrmap'); // all wrmap <div> elements
        jq_maps.each(init_wrmap);
+       */
 }