Project

General

Profile

« Previous | Next » 

Revision 2b83cc8b

Added by Andreas Kohlbecker over 7 years ago

fix #3226 fixing broken Google map layers

View differences:

modules/cdm_dataportal/js/map/openlayers_layers.js
149 149
                          transitionEffect: "resize"
150 150
                      }
151 151
                  );
152
          /*
153
          ALl GOOGLE LAYERS DISABELED until the new map api is integrated
152

  
154 153
          // create Google Mercator layers
155
          case 'gmap':
154
          case 'gmroadmap':
156 155
            return  new OpenLayers.Layer.Google(
157
                      "Google Streets",
156
                      "Google Roadmap",
158 157
                      {
159
                          // the default type
158
                          type: 'roadmap',
160 159
                          projection: window.CdmOpenLayers.projections.epsg_900913,
161 160
                          // Allow user to pan forever east/west
162 161
                          // Setting this to false only restricts panning if sphericalMercator is true.
163 162
                          wrapDateLine: false,
164 163
                          sphericalMercator: true,
165
                          numZoomLevels: 21,
164
                          numZoomLevels: 21
166 165
                      }
167 166
                  );
168 167

  
169
          case 'gsat':
168
          case 'gsatellite':
170 169
              // FIMXE: layer distorted, use OpenLayers.Layer.Google.v3?
171 170
            return  new OpenLayers.Layer.Google(
172 171
                      "Google Satellite",
173 172
                      {
174
                        type: G_SATELLITE_MAP,
173
                        type: 'satellite',
175 174
                        projection: window.CdmOpenLayers.projections.epsg_900913,
176 175
                        // Allow user to pan forever east/west
177 176
                        // Setting this to false only restricts panning if sphericalMercator is true.
......
179 178
                        numZoomLevels: 22
180 179
                      }
181 180
                  );
182
          case 'ghyb':
183
              // FIMXE: layer not working, use OpenLayers.Layer.Google.v3?
181
          case 'ghybrid':
184 182
            return  new OpenLayers.Layer.Google(
185 183
                      "Google Hybrid",
186 184
                      {
187
                          type: G_HYBRID_MAP,
185
                          type: 'hybrid',
188 186
                          projection: window.CdmOpenLayers.projections.epsg_900913,
189 187
                          // Allow user to pan forever east/west
190 188
                          // Setting this to false only restricts panning if sphericalMercator is true.
......
192 190
                          numZoomLevels: 22
193 191
                      }
194 192
                  );
195
          */
193

  
194
          case 'gterrain':
195
            return  new OpenLayers.Layer.Google(
196
              "Google Terrain",
197
              {
198
                type: 'terrain',
199
                projection: window.CdmOpenLayers.projections.epsg_900913,
200
                // Allow user to pan forever east/west
201
                // Setting this to false only restricts panning if sphericalMercator is true.
202
                wrapDateLine: false,
203
                numZoomLevels: 22
204
              }
205
            );
206

  
196 207
          /*
197 208
           * FIXME: apiKey needs to be specified
198 209
          case 'veroad':

Also available in: Unified diff