r55249 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55248‎ | r55249 | r55250 >
Date:17:58, 18 August 2009
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Fixed error in version number.
Modified paths:
  • /tags/extensions/Maps/REL_0_3_2/Maps_Settings.php (added) (history)

Diff [purge]

Index: tags/extensions/Maps/REL_0_3_2/Maps_Settings.php
@@ -0,0 +1,149 @@
 2+<?php
 3+
 4+/**
 5+ * File defining the settings for the Maps extension
 6+ * More info can be found at http://www.mediawiki.org/wiki/Extension:Maps#Settings
 7+ *
 8+ * NOTICE:
 9+ * Changing one of these settings can be done by copieng or cutting it,
 10+ * and placing it in LocalSettings.php, AFTER the inclusion of Maps.
 11+ *
 12+ * @file Maps_Settings.php
 13+ * @ingroup Maps
 14+ *
 15+ * @author Jeroen De Dauw
 16+ */
 17+
 18+if( !defined( 'MEDIAWIKI' ) ) {
 19+ die( 'Not an entry point.' );
 20+}
 21+
 22+# API keys configuration
 23+
 24+# Your Google Maps API key. Required for displaying Google Maps, and using the Google Geocoder services.
 25+# Haven't got an API key yet? Get it here: http://code.google.com/apis/maps/signup.html
 26+if (empty($egGoogleMapsKey)) $egGoogleMapsKey = "";
 27+
 28+# Your Yahoo! Maps API key. Required for displaying Yahoo! Maps.
 29+# Haven't got an API key yet? Get it here: https://developer.yahoo.com/wsregapp/
 30+if (empty($egYahooMapsKey)) $egYahooMapsKey = "";
 31+
 32+
 33+
 34+
 35+
 36+# Map services configuration
 37+# Note: You can not use aliases in the setting. Use the main service names.
 38+
 39+# Array of String. Array containing all the mapping services that will be made available to the user.
 40+# Currently Maps provides the following services: googlemaps, yahoomaps, openlayers
 41+$egMapsAvailableServices = array('googlemaps', 'yahoomaps', 'openlayers');
 42+
 43+# String. The default mapping service, which will be used when no default service is prsent in the
 44+# $egMapsDefaultServices array for a certain feature. A service that supports all features is recommended.
 45+# This service needs to be enabled, if not, the first one from the available services will be taken.
 46+$egMapsDefaultService = 'googlemaps';
 47+
 48+# Array of String. The default mapping service for each feature, which will be used when no valid service is provided by the user.
 49+# Each service needs to be enabled, if not, the first one from the available services will be taken.
 50+# Note: The default service needs to be available for the feature you set it for, since it's used as a fallback mechanism.
 51+$egMapsDefaultServices = array('pf' => 'googlemaps', 'qp' => 'googlemaps', 'fi' => 'googlemaps');
 52+
 53+
 54+
 55+
 56+
 57+# Geocoding services configuration
 58+
 59+# Array of String. Array containing all the geocoding services that will be made available to the user.
 60+# Currently Maps provides the following services: googlemaps, yahoomaps, openlayers
 61+$egMapsAvailableGeoServices = array('google', 'yahoo');
 62+
 63+# String. The default geocoding service, which will be used when no service is provided by the user.
 64+# This service needs to be enabled, if not, the first one from the available services will be taken.
 65+$egMapsDefaultGeoService = 'google';
 66+
 67+
 68+
 69+
 70+
 71+# General map properties configuration
 72+
 73+# Integer. The default width and height of a map. These values will only be used when the user does not provide them.
 74+$egMapsMapWidth = 600;
 75+$egMapsMapHeight = 350;
 76+
 77+# Strings. The default coordinates of the marker. This value will only be used when the user does not provide one.
 78+$egMapsMapLat = '1';
 79+$egMapsMapLon = '1';
 80+
 81+
 82+
 83+
 84+
 85+# Specific map properties configuration
 86+
 87+# Google maps
 88+
 89+# String. The Google Maps map name prefix. It can not be identical to the one of another mapping service.
 90+$egMapsGoogleMapsPrefix = 'map_google';
 91+
 92+# Integer. The default zoom of a map. This value will only be used when the user does not provide one.
 93+$egMapsGoogleMapsZoom = 14;
 94+
 95+# Array of String. The Google Maps default map types. This value will only be used when the user does not provide one.
 96+$egMapsGoogleMapsTypes = array('normal', 'satellite', 'hybrid', 'physical');
 97+
 98+# String. The default map type. This value will only be used when the user does not provide one.
 99+$egMapsGoogleMapsType = 'normal';
 100+
 101+# Boolean. The default value for enabling or disabling the autozoom of a map.
 102+# This value will only be used when the user does not provide one.
 103+$egMapsGoogleAutozoom = true;
 104+
 105+# Array of String. The default controls for Google Maps. This value will only be used when the user does not provide one.
 106+# Available values: large, small, large-original, small-original, zoom, type, type-menu, overview-map, scale, nav-label
 107+$egMapsGMapControls = array('large', 'scale', 'type');
 108+
 109+
 110+
 111+# Yahoo maps
 112+
 113+# String. The Yahoo! maps map name prefix. It can not be identical to the one of another mapping service.
 114+$egMapsYahooMapsPrefix = 'map_yahoo';
 115+
 116+# Array of String. The Google Maps default map types. This value will only be used when the user does not provide one.
 117+$egMapsYahooMapsTypes = array('normal', 'satellite', 'hybrid');
 118+
 119+# String. The default map type. This value will only be used when the user does not provide one.
 120+$egMapsYahooMapsType = 'normal';
 121+
 122+# Integer. The default zoom of a map. This value will only be used when the user does not provide one.
 123+$egMapsYahooMapsZoom = 4;
 124+
 125+# Boolean. The default value for enabling or disabling the autozoom of a map.
 126+# This value will only be used when the user does not provide one.
 127+$egMapsYahooAutozoom = true;
 128+
 129+# Array of String. The default controls for Yahoo! Maps. This value will only be used when the user does not provide one.
 130+# Available values: type, pan, zoom, zoom-short
 131+$egMapsYMapControls = array('type', 'pan', 'zoom');
 132+
 133+
 134+
 135+# OpenLayers
 136+
 137+# String. The OpenLayers map name prefix. It can not be identical to the one of another mapping service.
 138+$egMapsOpenLayersPrefix = 'open_layer';
 139+
 140+# Integer. The default zoom of a map. This value will only be used when the user does not provide one.
 141+$egMapsOpenLayersZoom = 10;
 142+
 143+# Array of String. The default controls for Open Layers. This value will only be used when the user does not provide one.
 144+# Available values: layerswitcher, mouseposition, panzoom, panzoombar, scaleline, navigation, keyboarddefaults, overviewmap, permalink
 145+# Note: panzoom and panzoombar can NOT be used together
 146+$egMapsOLControls = array('layerswitcher', 'mouseposition', 'panzoombar', 'scaleline', 'navigation');
 147+
 148+# Array of String. The default layers for Open Layers. This value will only be used when the user does not provide one.
 149+# Available values: google, bing, yahoo, openlayers, nasa
 150+$egMapsOLLayers = array('openlayers');
\ No newline at end of file

Status & tagging log