http://www.mediawiki.org/wiki/Special:Code/MediaWiki/69037
Revision: 69037
Author: avar
Date: 2010-07-04 23:40:20 +0000 (Sun, 04 Jul 2010)
Log Message:
-----------
Maps: define a openlayers google group
This doesn't work yet because we also need to import the Google Maps
API in addition to OpenLayers, see the example here:
http://openlayers.org/dev/examples/google.html
Modified Paths:
--------------
trunk/extensions/Maps/Maps_Settings.php
Modified: trunk/extensions/Maps/Maps_Settings.php
===================================================================
--- trunk/extensions/Maps/Maps_Settings.php 2010-07-04 23:32:34 UTC (rev
69036)
+++ trunk/extensions/Maps/Maps_Settings.php 2010-07-04 23:40:20 UTC (rev
69037)
@@ -359,6 +359,11 @@
# The difinitions for the layers that should be available for
the user.
$egMapsOLAvailableLayers = array(
+ 'google-physical' => array(
'OpenLayers.Layer.Google( "Google Physical", {type: G_PHYSICAL_MAP} )',
'google' ),
+ 'google-streets' => array(
'OpenLayers.Layer.Google( "Google Streets", {numZoomLevels: 20} )', 'google' ),
+ 'google-hybrid' => array(
'OpenLayers.Layer.Google( "Google Hybrid", {type: G_HYBRID_MAP, numZoomLevels:
20} )', 'google' ),
+ 'google-satellite' => array(
'OpenLayers.Layer.Google( "Google Satellite", {type: G_SATELLITE_MAP,
numZoomLevels: 22} )', 'google' ),
+
'bing-normal' => array( 'OpenLayers.Layer.VirtualEarth(
"Bing Streets", {type: VEMapStyle.Shaded, "sphericalMercator":true} )', 'bing'
),
'bing-satellite' => array(
'OpenLayers.Layer.VirtualEarth( "Bing Satellite", {type: VEMapStyle.Aerial,
"sphericalMercator":true} )', 'bing' ),
'bing-hybrid' => array( 'OpenLayers.Layer.VirtualEarth(
"Bing Hybrid", {type: VEMapStyle.Hybrid, "sphericalMercator":true} )', 'bing' ),
@@ -394,6 +399,7 @@
# Layer group definitions. Group names must be different from
layer names, and
# must only contain layers that are present in
$egMapsOLAvailableLayers.
$egMapsOLLayerGroups = array(
+ 'google' => array( 'google-physical', 'google-streets',
'google-hybrid', 'google-satellite' ),
'yahoo' => array( 'yahoo-normal', 'yahoo-satellite',
'yahoo-hybrid' ),
'bing' => array( 'bing-normal', 'bing-satellite',
'bing-hybrid' ),
'osm' => array( 'osmarender', 'osm-mapnik',
'osm-cyclemap' ),
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs