r66507 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66506‎ | r66507 | r66508 >
Date:02:51, 16 May 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Improved docs
Modified paths:
  • /trunk/extensions/SemanticMaps/SM_Settings.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/SM_Settings.php
@@ -21,68 +21,63 @@
2222
2323
2424
25 -# Map features configuration
26 -# (named) Array of String. This array contains the available features for Maps.
27 -# The array element name contains an abbriviation, used for code references,
28 -# and in the service data arrays, the value is the human readible version for displaying purpouses.
29 -include_once $smgDir . 'Features/QueryPrinters/SM_QueryPrinters.php'; // Query printers
30 -include_once $smgDir . 'Features/FormInputs/SM_FormInputs.php'; // Form imputs
 25+# Features configuration
3126
32 -# Array of String. The default mapping service for each feature, which will be used when no valid service is provided by the user.
33 -# Each service needs to be enabled, if not, the first one from the available services will be taken.
34 -# Note: The default service needs to be available for the feature you set it for, since it's used as a fallback mechanism.
35 -$egMapsDefaultServices['qp'] = 'googlemaps2';
36 -$egMapsDefaultServices['fi'] = 'googlemaps2';
 27+ # (named) Array of String. This array contains the available features for Maps.
 28+ # Commenting out the inclusion of any feature will make Maps completely ignore it, and so improve performance.
 29+
 30+ # Query printers
 31+ include_once $smgDir . 'Features/QueryPrinters/SM_QueryPrinters.php';
 32+ # Form imputs
 33+ include_once $smgDir . 'Features/FormInputs/SM_FormInputs.php';
3734
3835
3936
40 -
41 -
4237 # Mapping services configuration
4338
44 -# Include the mapping services that should be loaded into Semantic Maps.
45 -# Commenting or removing a mapping service will cause Semantic Maps to completely ignore it, and so improve performance.
46 -include_once $smgDir . 'Services/GoogleMaps/SM_GoogleMaps.php'; // Google Maps
47 -include_once $smgDir . 'Services/OpenLayers/SM_OpenLayers.php'; // OpenLayers
48 -include_once $smgDir . 'Services/YahooMaps/SM_YahooMaps.php'; // Yahoo! Maps
49 -// include_once $smgDir . 'Services/OpenStreetMap/SM_OSM.php'; // OpenLayers optimized for OSM
 39+ # Include the mapping services that should be loaded into Semantic Maps.
 40+ # Commenting or removing a mapping service will cause Semantic Maps to completely ignore it, and so improve performance.
 41+ # Google Maps API v2
 42+ include_once $smgDir . 'Services/GoogleMaps/SM_GoogleMaps.php';
 43+ # OpenLayers API
 44+ include_once $smgDir . 'Services/OpenLayers/SM_OpenLayers.php';
 45+ # Yahoo! Maps API
 46+ include_once $smgDir . 'Services/YahooMaps/SM_YahooMaps.php';
5047
 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['qp'] = 'googlemaps2';
 52+ $egMapsDefaultServices['fi'] = 'googlemaps2';
 53+
 54+
5155
52 -
53 -
54 -
5556 # Queries
5657
57 -# Boolean. The default value for the forceshow parameter. Will force a map to be shown even when there are no query results
58 -# when set to true. This value will only be used when the user does not provide one.
59 -$smgQPForceShow = false;
 58+ # Boolean. The default value for the forceshow parameter. Will force a map to be shown even when there are no query results
 59+ # when set to true. This value will only be used when the user does not provide one.
 60+ $smgQPForceShow = false;
 61+
 62+ # Boolean. The default value for the showtitle parameter. Will hide the title in the marker pop-ups when set to true.
 63+ # This value will only be used when the user does not provide one.
 64+ $smgQPShowTitle = true;
 65+
 66+ # String or false. Allows you to define the content and it's layout of marker pop-ups via a template.
 67+ # This value will only be used when the user does not provide one.
 68+ $smgQPTemplate = false;
 69+
 70+ # Enum. The default output format of coordinates.
 71+ # Possible values: Maps_COORDS_FLOAT, Maps_COORDS_DMS, Maps_COORDS_DM, Maps_COORDS_DD
 72+ $smgQPCoodFormat = $egMapsCoordinateNotation;
 73+
 74+ # Boolean. Indicates if coordinates should be outputted in directional notation by default.
 75+ $smgQPCoodDirectional = $egMapsCoordinateDirectional;
6076
61 -# Boolean. The default value for the showtitle parameter. Will hide the title in the marker pop-ups when set to true.
62 -# This value will only be used when the user does not provide one.
63 -$smgQPShowTitle = true;
6477
65 -# String or false. Allows you to define the content and it's layout of marker pop-ups via a template.
66 -# This value will only be used when the user does not provide one.
67 -$smgQPTemplate = false;
6878
69 -# Enum. The default output format of coordinates.
70 -# Possible values: Maps_COORDS_FLOAT, Maps_COORDS_DMS, Maps_COORDS_DM, Maps_COORDS_DD
71 -$smgQPCoodFormat = $egMapsCoordinateNotation;
72 -
73 -# Boolean. Indicates if coordinates should be outputted in directional notation by default.
74 -$smgQPCoodDirectional = $egMapsCoordinateDirectional;
75 -
76 -# Integer. The default distance value to be used in geographical distance queries.
77 -# This value will only be used when the user does not provide one.
78 -$smgGeoCoordDistance = 5;
79 -
80 -
81 -
82 -
83 -
8479 # Forms
8580
86 -# Integer or string. The default width and height of maps in forms created by using Semantic Forms.
87 -# These values only be used when the user does not provide them.
88 -$smgFIWidth = 665;
89 -$smgFIHeight = $egMapsMapHeight;
\ No newline at end of file
 81+ # Integer or string. The default width and height of maps in forms created by using Semantic Forms.
 82+ # These values only be used when the user does not provide them.
 83+ $smgFIWidth = 665;
 84+ $smgFIHeight = $egMapsMapHeight;
\ No newline at end of file

Status & tagging log