+ // this nightmare is possible through http://docs.openlayers.org/library/spherical_mercator.html
+ if (options.google_apikey && options.google_apikey != 'null') {
+ googleLayer = new OpenLayers.Layer.Google(
+ "Google Hybrid",
+ {type: G_HYBRID_MAP,
+ 'sphericalMercator': true,
+ 'maxExtent': new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
+ projection: new OpenLayers.Projection("EPSG:3857")}
+ );
+ map.addLayer(googleLayer);
+ }