Project

General

Profile

Revision 4213b101

ID4213b101b6fdf713976ef08afbdaaa1ca443f825
Parent c266a8fe
Child e0a990e9, d825f4bf

Added by Andreas Kohlbecker about 3 years ago

fix #6653 adding stamen terrain and OpenTopoMap base layers

View differences:

modules/cdm_dataportal/js/map/openlayers_layers.js
116 116
          case 'mapnik':
117 117
              return  new OpenLayers.Layer.OSM();
118 118

  
119
          case 'stamen_terrain':
120
            // see http://developer.mapquest.com/web/products/open/map
121
            return new OpenLayers.Layer.XYZ(
122
              "Stamen Terrain",
123
              [
124
                "https://stamen-tiles.a.ssl.fastly.net/terrain/${z}/${x}/${y}.jpg"
125
              ],
126
              {
127
                // If using the MapQuest-OSM tiles, OpenStreetMap must be given credit for the data
128
                attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',
129
                transitionEffect: "resize",
130
                sphericalMercator: true
131
              }
132
            );
133

  
134
          case 'open_topomap':
135
            // see http://developer.mapquest.com/web/products/open/map
136
            return new OpenLayers.Layer.XYZ(
137
              "OpenTopoMap",
138
              [
139
                "http://a.tile.opentopomap.org/${z}/${x}/${y}.png",
140
                "http://b.tile.opentopomap.org/${z}/${x}/${y}.png",
141
                "http://c.tile.opentopomap.org/${z}/${x}/${y}.png"
142
              ],
143
              {
144
                // If using the MapQuest-OSM tiles, OpenStreetMap must be given credit for the data
145
                attribution: 'Kartendaten: © <a href="https://openstreetmap.org/copyright">OpenStreetMap</a>-Mitwirkende, SRTM | Kartendarstellung: © <a href="http://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)',
146
                transitionEffect: "resize",
147
                sphericalMercator: true
148
              }
149
            );
150

  
151
            //
152

  
119 153
          case 'mapquest_open':
120 154
              // see http://developer.mapquest.com/web/products/open/map
121 155
              return new OpenLayers.Layer.XYZ(
modules/cdm_dataportal/js/map/openlayers_map.js
95 95
        };
96 96
        var mapExtends = {
97 97
                epsg_4326: new OpenLayers.Bounds(-180, -90, 180, 90),
98
                //  Spherical Mercator epsg_900913 is not suppporting the whole marble
98
                //  Spherical Mercator epsg_900913 is not supporting the whole marble
99 99
                epsg_900913: new OpenLayers.Bounds(-179, -85, 179, 85),
100 100
                //  Spherical Mercator
101 101
                epsg_3857: new OpenLayers.Bounds(-179, -85, 179, 85)
modules/cdm_dataportal/settings.php
2991 2991
    'mapproxy_etopo1' => "ETOPO1 Global Relief Model - via fast EDIT MapProxy",
2992 2992
    'edit-etopo1' => "ETOPO1 Global Relief Model",
2993 2993
    // all others EPSG:900913
2994
    'mapnik' => 'OpenStreetMap',
2995
    'mapquest_open' => "MapQuest",
2996
    'mapquest_sat' => "MapQuest Sattelite",
2994
    'mapnik' => 'OpenStreetMap (mapnik)',
2995
    'stamen_terrain' => 'Stamen Terrain',
2996
    'open_topomap' => 'OpenTopoMap',
2997
    // map quest is no longer free. it is required to sign up for a test plan.
2998
    // 'mapquest_open' => "MapQuest",
2999
    // 'mapquest_sat' => "MapQuest Sattelite",
2997 3000
    'groadmap' => 'Google Roadmap',
2998 3001
    'gsatellite' => 'Google Satellite',
2999 3002
    'ghybrid' => 'Google Hybrid',

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)