summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/Maps/DefaultSettings.php
blob: a3834788f42f29b3c07a2b059673926bceafaa42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
<?php

// This file lists all settings you can use to configure the Maps extension and their default values.
// Do not modify this file to change settings. See https://www.semantic-mediawiki.org/wiki/Maps/Configuration
// Do not include this file in LocalSettings. Instead include Maps_Settings.php.

return [
	// Mapping services that will be available in the wiki.
	// These can be used in #display_map with service=leaflet or in #ask with format=leaflet
	'egMapsAvailableServices' => [
		'leaflet',
		'googlemaps3'
	],

	// The mapping service that will be used when no service is specified by the user.
	'egMapsDefaultService' => 'leaflet',

	// Allows disabling the extension even when it is installed.
	// CAUTION: this setting is intended for wiki farms. On single wiki installations,
	//          the recommended way to disable maps is to uninstall it via Composer. Disabling
	//          Maps via this setting undermines package management safety: extensions that depend
	//          on Maps will likely either break or disable themselves.
	'egMapsDisableExtension' => false,

	// Allows disabling the Semantic MediaWiki integration.
	'egMapsDisableSmwIntegration' => false,





	/**
	 * GENERAL MAP CONFIGURATION
	 */

	// Integer or string. The default width and height of a map. These values will
	// only be used when the user does not provide them.
	'egMapsMapWidth' => 'auto',
	'egMapsMapHeight' => 350,

	// Strings. The default content for all pop-ups. This value will only be used
	// when the user does not provide one.
	'egMapsDefaultTitle' => '',
	'egMapsDefaultLabel' => '',

	'egMapsResizableByDefault' => false,
	'egMapsRezoomForKML' => false,

	// Boolean. Sets if pages with maps should be put in special category
	'egMapsEnableCategory' => false,

	// Integer. Determines the TTL of cached GeoJson.
	// Default value: 0 (no caching).
	'egMapsGeoJsonCacheTtl' => 0,





	/**
	 * SEMANTIC MEDIAWIKI INTEGRATION
	 */

	// Boolean. The default value for the showtitle parameter. Will hide the title in the marker pop-ups when set to false.
	// This value will only be used when the user does not provide one.
	'smgQPShowTitle' => true,

	// Boolean. The default value for the hidenamespace parameter. Will hide the namespace in the marker pop-ups when set to true.
	// This value will only be used when the user does not provide one.
	'smgQPHideNamespace' => false,

	// String or false. Allows you to define the content and it's layout of marker pop-ups via a template.
	// This value will only be used when the user does not provide one.
	'smgQPTemplate' => false,





	/**
	 * COORDINATE CONFIGURATION
	 */

	// The coordinate notations that should be available.
	'egMapsAvailableCoordNotations' => [
		'float',
		'dms',
		'dm',
		'dd'
	],

	// The default output format of coordinates.
	// Possible values: float, dms, dm, dd
	'egMapsCoordinateNotation' => 'dms',

	// Boolean. Indicates if coordinates should be outputted in directional notation by default.
	// Recommended to be true for dms and false for float.
	'egMapsCoordinateDirectional' => true,

	// The default output format of coordinates when displayed by Semantic MediaWiki.
	// Possible values: float, dms, dm, dd
	'smgQPCoodFormat' => 'dms',

	// Boolean. Indicates if coordinates should be outputted in directional notation by default when
	// displayed by Semantic MediaWiki.
	'smgQPCoodDirectional' => true,

	// Boolean. Sets if direction labels should be translated to their equivalent in the wiki language or not.
	'egMapsInternatDirectionLabels' => true,

	// Boolean. When false, the #coordinates parser function will not be enabled.
	// This is useful for people using the GeoData extension and want to use its #coordinates function instead.
	'egMapsEnableCoordinateFunction' => true,





	/**
	 * GEOCODING CONFIGURATION
	 */

	// Sets which service should be used to turn addresses into coordinates
	// Available services: geonames, google, nominatim
	// The geonames service requires you to specify a geonames user (see below),
	// if you set this setting to geonames but do not specify the user, Maps will
	// fall back to using the google service.
	'egMapsDefaultGeoService' => 'nominatim',

	// String. GeoNames API user/application name.
	// Obtain an account here: http://www.geonames.org/login
	// Do not forget to activate your account for API usage!
	'egMapsGeoNamesUser' => '',

	// Boolean. Sets if geocoded addresses should be stored in a cache.
	'egMapsEnableGeoCache' => true,

	// Integer. If egMapsEnableGeoCache is true, determines the TTL of cached geocoded addresses.
	// Default value: 1 day.
	'egMapsGeoCacheTtl' => 24 * 3600,





	/**
	 * LEAFLET CONFIGURATION
	 */

	// Integer. The default zoom of a map. This value will only be used when the
	// user does not provide one.
	'egMapsLeafletZoom' => 14,

	// String. The default layer for Leaflet. This value will only be
	// used when the user does not provide one.
	'egMapsLeafletLayer' => 'OpenStreetMap',
	'egMapsLeafletLayers' => [ 'OpenStreetMap' ],

	'egMapsLeafletOverlayLayers' => [],

	// The definitions for the layers that should be available for the user.
	'egMapsLeafletAvailableLayers' => [
		'OpenStreetMap' => true,
		'OpenStreetMap.DE' => true,
		'OpenStreetMap.BlackAndWhite' => true,
		'OpenStreetMap.HOT' => true,
		'OpenTopoMap' => true,
		'Thunderforest.OpenCycleMap' => true,
		'Thunderforest.Transport' => true,
		'Thunderforest.TransportDark' => true,
		'Thunderforest.SpinalMap' => true,
		'Thunderforest.Landscape' => true,
		'Thunderforest.Outdoors' => true,
		'Thunderforest.Pioneer' => true,
		'OpenMapSurfer.Roads' => true,
		'OpenMapSurfer.Grayscale' => true,
		'Hydda.Full' => true,
		'Hydda.Base' => true,
		//'MapBox' => false, // todo: implement setting api key
		'Stamen.Toner' => true,
		'Stamen.TonerBackground' => true,
		'Stamen.TonerHybrid' => true,
		'Stamen.TonerLines' => true,
		'Stamen.TonerLabels' => true,
		'Stamen.TonerLite' => true,
		'Stamen.Watercolor' => true,
		'Stamen.Terrain' => true,
		'Stamen.TerrainBackground' => true,
		'Stamen.TopOSMRelief' => true,
		'Stamen.TopOSMFeatures' => true,
		'Esri.WorldStreetMap' => true,
		'Esri.DeLorme' => true,
		'Esri.WorldTopoMap' => true,
		'Esri.WorldImagery' => true,
		'Esri.WorldTerrain' => true,
		'Esri.WorldShadedRelief' => true,
		'Esri.WorldPhysical' => true,
		'Esri.OceanBasemap' => true,
		'Esri.NatGeoWorldMap' => true,
		'Esri.WorldGrayCanvas' => true,
		'MapQuestOpen' => true,
		//'HERE' => false, // todo: implement setting api key
		'FreeMapSK' => true,
		'MtbMap' => true,
		'CartoDB.Positron' => true,
		'CartoDB.PositronNoLabels' => true,
		'CartoDB.PositronOnlyLabels' => true,
		'CartoDB.DarkMatter' => true,
		'CartoDB.DarkMatterNoLabels' => true,
		'CartoDB.DarkMatterOnlyLabels' => true,
		'HikeBike.HikeBike' => true,
		'HikeBike.HillShading' => true,
		'BasemapAT.basemap' => true,
		'BasemapAT.grau' => true,
		'BasemapAT.overlay' => true,
		'BasemapAT.highdpi' => true,
		'BasemapAT.orthofoto' => true,
		'NASAGIBS.ModisTerraTrueColorCR' => true,
		'NASAGIBS.ModisTerraBands367CR' => true,
		'NASAGIBS.ViirsEarthAtNight2012' => true,
		'NLS' => true,
		'GeoportailFrance' => true,
		'GeoportailFrance.parcels' => true,
		'GeoportailFrance.ignMaps' => true,
		'GeoportailFrance.orthos' => true
	],

	'egMapsLeafletAvailableOverlayLayers' => [
		'OpenMapSurfer.AdminBounds' => true,
		'OpenSeaMap' => true,
		'OpenWeatherMap.Clouds' => true,
		'OpenWeatherMap.CloudsClassic' => true,
		'OpenWeatherMap.Precipitation' => true,
		'OpenWeatherMap.PrecipitationClassic' => true,
		'OpenWeatherMap.Rain' => true,
		'OpenWeatherMap.RainClassic' => true,
		'OpenWeatherMap.Pressure' => true,
		'OpenWeatherMap.PressureContour' => true,
		'OpenWeatherMap.Wind' => true,
		'OpenWeatherMap.Temperature' => true,
		'OpenWeatherMap.Snow' => true,
		'Hydda.RoadsAndLabels' => true,
		'NASAGIBS.ModisTerraLSTDay' => true,
		'NASAGIBS.ModisTerraSnowCover' => true,
		'NASAGIBS.ModisTerraAOD' => true,
		'NASAGIBS.ModisTerraChlorophyll' => true
	],

	'egMapsLeafletLayersApiKeys' => [
		'MapBox' => '',
		'MapQuestOpen' => '',
		'Thunderforest' => '',
		'GeoportailFrance' => ''
	],

	'egMapsLeafletLayerDependencies' => [
		'MapQuestOpen' => 'https://open.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=',
	],





	/**
	 * GOOGLE MAPS CONFIGURATION
	 */

	// String. Google Maps v3 API Key
	'egMapsGMaps3ApiKey' => '',

	// String. Google Maps v3 API version number
	'egMapsGMaps3ApiVersion' => '',

	// Integer. The default zoom of a map. This value will only be used when the
	// user does not provide one.
	'egMapsGMaps3Zoom' => 14,

	// Array of String. The Google Maps v3 default map types. This value will only
	// be used when the user does not provide one.
	'egMapsGMaps3Types' => [
		'roadmap',
		'satellite',
		'hybrid',
		'terrain'
	],

	// String. The default map type. This value will only be used when the user
	// does not provide one.
	'egMapsGMaps3Type' => 'roadmap',

	// Array. List of controls to display onto maps by default.
	'egMapsGMaps3Controls' => [
		'pan',
		'zoom',
		'type',
		'scale',
		'streetview',
		'rotate'
	],

	// String. The default style for the type control.
	// horizontal, vertical or default
	'egMapsGMaps3DefTypeStyle' => 'default',

	// String. The default style for the zoom control.
	// small, large or default
	'egMapsGMaps3DefZoomStyle' => 'default',

	// Boolean. Open the info windows on load by default?
	'egMapsGMaps3AutoInfoWindows' => false,

	// Array. Layers to load by default.
	// traffic, bicycling and transit
	'egMapsGMaps3Layers' => [],

	// Show points of interest or not.
	'egMapsShowPOI' => true,

	// String. Set the language when rendering Google Maps.
	'egMapsGMaps3Language' => '',





	/**
	 * DISTANCE CONFIGURATION
	 */

	// Array. A list of units (keys) and how many meters they represent (value).
	// No spaces! If the unit consists out of multiple words, just write them together.
	'egMapsDistanceUnits' => [
		'm' => 1,
		'meter' => 1,
		'meters' => 1,
		'km' => 1000,
		'kilometers' => 1000,
		'kilometres' => 1000,
		'mi' => 1609.344,
		'mile' => 1609.344,
		'miles' => 1609.344,
		'nm' => 1852,
		'nauticalmile' => 1852,
		'nauticalmiles' => 1852,
	],

	// String. The default unit for distances.
	'egMapsDistanceUnit' => 'm',

	// Integer. The default amount of fractal digits in a distance.
	'egMapsDistanceDecimals' => 2,





	/**
	 * DEBUGGING
	 */

	// When true, debugging messages will be logged using mw.log(). Do not use on production wikis.
	'egMapsDebugJS' => false,

	'egMapsGlobalJSVars' => [],
];