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
|
var CONFIG = {
// Language of templates to use ( should be name of directory under www/templates/ )
LANGUAGE: 'en',
// Name of app to use in alert dialog titles amongst other things
APP_NAME: 'FixMyStreet',
// URL of the fixmystreet install to report to. See also config.xml-example
// Make sure it does *not* end with a slash.
FMS_URL: 'http://fixmystreet.example.org',
// Name of the cobrand to use for templates, stylesheets etc.
// Cobrand files should be placed in a new directory within www/cobrands/
// Leave as null to use the default templates.
COBRAND: null,
// Type of map to use; possible options currently are 'OSM', 'Bing' or
// 'FMS' (UK only). The default is OSM.
MAP_TYPE: 'OSM',
// namespace for storing drafts etc in. Should not need to change
NAMESPACE: 'fixmystreet',
// directory to store draft photos in. Should not need to change
FILES_DIR: 'photos',
// accuracy in meters required before geolocation is successful
ACCURACY: 100,
// how long, in milliseconds, before photo uploads timeout. Defaults to 120000 ( 2 minutes )
UPLOAD_TIMEOUT: 120000,
// Set to 1 to log debug messages to the console
DEBUG: 0,
// Bing Maps API key if needed
BING_MAPS_API_KEY: '',
PINS: {
location: {
image: 'images/pin@x2.png',
background: 'images/pin_shadow@x2.png',
image_svg: 'images/pin.svg',
background_svg: 'images/pin_shadow.svg'
}
},
// Set this to true if you want to disable the help button on the right hand
// side of the screen. NB you'll also need to hide #display-help and #help
// elements in your CSS.
HELP_DISABLED: false,
// Set this to true if the user must provide at least one photo when making
// a report. If this is true the 'skip' button on the photo page is removed
// and 'next' doesn't appear until at least one photo is attached.
PHOTO_REQUIRED: false,
// The maximum number of photos the user can attach to a report.
MAX_PHOTOS: 3,
// If this is true then the user must login as the first step after
// installing the app, and before making any reports.
LOGIN_REQUIRED: false,
// The ratio of the data bounds to the viewport bounds (in each dimension).
// See http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Strategy/BBOX-js.html
MAP_LOADING_RATIO: 2
};
// This bit is so this can be imported as a nodejs module for hook processing
var module = module || {};
module.exports = CONFIG;
|