diff war/scripts/sti/STIMap.js @ 34:5ef409e34638

Bump GMaps API to version 3
author Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
date Mon, 03 Dec 2012 12:06:59 +0100
parents 8f1aa93fad09
children eac73bf1ce6e
line wrap: on
line diff
--- a/war/scripts/sti/STIMap.js	Fri Nov 30 17:03:17 2012 +0100
+++ b/war/scripts/sti/STIMap.js	Mon Dec 03 12:06:59 2012 +0100
@@ -644,10 +644,10 @@
 		
 
 		if( this.core.props.googleMaps ){
-        this.baseLayers.push( new OpenLayers.Layer.Google("Google Physical", {type: G_PHYSICAL_MAP, 'sphericalMercator': true} ) );        
+        this.baseLayers.push( new OpenLayers.Layer.Google("Google Physical", {type: google.maps.MapTypeId.TERRAIN, 'sphericalMercator': true} ) );        
 		this.baseLayers.push( new OpenLayers.Layer.Google( 'Google Streets', { 'sphericalMercator': true } ) );
-		this.baseLayers.push( new OpenLayers.Layer.Google( 'Google Satellite', { type: G_SATELLITE_MAP, 'sphericalMercator': true } ) );
-		this.baseLayers.push( new OpenLayers.Layer.Google( 'Google Hybrid', { type: G_HYBRID_MAP, 'sphericalMercator': true } ) );
+		this.baseLayers.push( new OpenLayers.Layer.Google( 'Google Satellite', { type: google.maps.MapTypeId.SATELLITE, 'sphericalMercator': true } ) );
+		this.baseLayers.push( new OpenLayers.Layer.Google( 'Google Hybrid', { type: google.maps.MapTypeId.HYBRID, 'sphericalMercator': true } ) );
 		}
 		
 		if( this.core.props.bingMaps ){