-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.js
More file actions
44 lines (39 loc) · 1.25 KB
/
config.js
File metadata and controls
44 lines (39 loc) · 1.25 KB
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
import { helpAdvice, digiAccess } from "./themes/example";
/* App config.
mapConfig stores options for Leaflet maps. tileLayer defines the provider
for background mapping.
*/
const appConfig = {
Title: "Open Data Viewer",
SubTitle: "OpenSteetMap and Leaflet",
Info: "An example open data web map using OpenSteetMap and Leaflet"
};
const mapConfig = {
params: {
center: [56.0019, -3.789],
zoom: 13,
attributionControl: true,
zoomControl: false,
maxBounds: ([[55.7, -4.3], [56.3, -3.1]]),
},
tileLayer: {
uri: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
params: {
minZoom: 11,
attribution: "© <a href='https://www.openstreetmap.org/'>OpenStreetMap</a> contributors & <a href='https://wikimediafoundation.org/wiki/Maps_Terms_of_Use'>Wikimedia</a>",
id: '',
accessToken: ''
},
},
search: {
// Defines the parameter for OSM nominatim search
// See https://wiki.openstreetmap.org/wiki/Nominatim for details on search params
viewbox: "-3.9,55.9,-3.6,56.1",
bounded: 1,
limit: 10
}
};
const appThemes = [helpAdvice, digiAccess];
export {
mapConfig, appThemes, appConfig
};