Index: trunk/extensions/SemanticMaps/SM_Settings.php |
— | — | @@ -21,68 +21,63 @@ |
22 | 22 | |
23 | 23 | |
24 | 24 | |
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 |
31 | 26 | |
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'; |
37 | 34 | |
38 | 35 | |
39 | 36 | |
40 | | - |
41 | | - |
42 | 37 | # Mapping services configuration |
43 | 38 | |
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'; |
50 | 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['qp'] = 'googlemaps2'; |
| 52 | + $egMapsDefaultServices['fi'] = 'googlemaps2'; |
| 53 | + |
| 54 | + |
51 | 55 | |
52 | | - |
53 | | - |
54 | | - |
55 | 56 | # Queries |
56 | 57 | |
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; |
60 | 76 | |
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; |
64 | 77 | |
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; |
68 | 78 | |
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 | | - |
84 | 79 | # Forms |
85 | 80 | |
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 |