Index: trunk/extensions/Maps/Maps.i18n.php |
— | — | @@ -186,6 +186,7 @@ |
187 | 187 | 'maps-googlemaps3-par-kml' => 'KML files to load onto the map.', |
188 | 188 | 'maps-googlemaps3-par-gkml' => 'KML files hosted by Google to load onto the map.', |
189 | 189 | 'maps-googlemaps3-par-fusiontables' => 'IDs of Google Fusion Tables which should be loaded onto the map.', |
| 190 | + 'maps-googlemaps3-par-tilt' => 'Tilt for the Map when using Google Maps.', |
190 | 191 | |
191 | 192 | // OpenLayers |
192 | 193 | 'maps-openlayers-par-controls' => 'The controls to place on the map.', |
Index: trunk/extensions/Maps/Maps_Settings.php |
— | — | @@ -215,6 +215,8 @@ |
216 | 216 | |
217 | 217 | $egMapsGMaps3Layers = array(); |
218 | 218 | |
| 219 | + $egMapsGMaps3DefaultTilt = 0; |
| 220 | + |
219 | 221 | $egGoogleJsApiKey = ''; |
220 | 222 | |
221 | 223 | |
Index: trunk/extensions/Maps/includes/services/GoogleMaps3/Maps_GoogleMaps3.php |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | public function addParameterInfo( array &$params ) { |
86 | 86 | global $egMapsGMaps3Type, $egMapsGMaps3Types, $egMapsGMaps3Controls, $egMapsGMaps3Layers; |
87 | 87 | global $egMapsGMaps3DefTypeStyle, $egMapsGMaps3DefZoomStyle, $egMapsGMaps3AutoInfoWindows; |
88 | | - global $egMapsResizableByDefault; |
| 88 | + global $egMapsResizableByDefault, $egMapsGMaps3DefaultTilt; |
89 | 89 | |
90 | 90 | $params['zoom']->addCriteria( new CriterionInRange( 0, 20 ) ); |
91 | 91 | $params['zoom']->setDefault( self::getDefaultZoom() ); |
— | — | @@ -145,10 +145,9 @@ |
146 | 146 | $params['resizable']->setDefault( $egMapsResizableByDefault, false ); |
147 | 147 | $params['resizable']->setMessage( 'maps-par-resizable' ); |
148 | 148 | |
149 | | - $egMapsGMaps3DefaultTilt = 15; // TODO |
150 | 149 | $params['tilt'] = new Parameter( 'tilt', Parameter::TYPE_INTEGER ); |
151 | 150 | $params['tilt']->setDefault( $egMapsGMaps3DefaultTilt, false ); |
152 | | - $params['tilt']->setMessage( 'maps-par-tilt' ); |
| 151 | + $params['tilt']->setMessage( 'maps-googlemaps3-par-tilt' ); |
153 | 152 | } |
154 | 153 | |
155 | 154 | /** |