]> ToastFreeware Gitweb - philipp/winterrodeln/mediawiki_extensions/wrmap.git/blobdiff - wrmap.js
Disable functionality.
[philipp/winterrodeln/mediawiki_extensions/wrmap.git] / wrmap.js
index d7366a667eef7a4a6bb225b8b17a74fd44ac30b9..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, {
@@ -61,6 +61,8 @@ function init_wrmap(i, jq_map) {
 
        // background layer
        // ----------------
+       // // 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
        });
@@ -68,10 +70,11 @@ function init_wrmap(i, jq_map) {
        // // Alternative: OSM map
        // var layer_map = new OpenLayers.Layer.OSM();
        
-       // // Alternative: Microsoft Bing Maps
+       // Microsoft Bing Maps
        // var layer_map = new OpenLayers.Layer.Bing({
-       //     type: "Road",
-       //     key: "AgPH3SlIXAwajrJKf0FORQyhTqsP8KIlvtN6RKfvxe6fOB6q6-HFmg8EOFm7LSOA"});
+       //      type: "Road",
+       //      key: "AgPH3SlIXAwajrJKf0FORQyhTqsP8KIlvtN6RKfvxe6fOB6q6-HFmg8EOFm7LSOA",
+       //      tileOptions: {crossOriginKeyword: null}});
 
        // // Alternative: Base map
        // // see: http://www.basemap.at
@@ -251,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
@@ -338,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);
+       */
 }