Skip to content

Commit b1ecaf7

Browse files
author
Martin Clarke
committed
Adds new theme
1 parent cc9bbc1 commit b1ecaf7

2 files changed

Lines changed: 49 additions & 3 deletions

File tree

src/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { school } from "./themes/example";
1+
import { school, digiAccess } from "./themes/example";
22

33
/* App config.
44
mapConfig stores options for Leaflet maps. tileLayer defines the provider
@@ -37,7 +37,7 @@ const mapConfig = {
3737
}
3838
};
3939

40-
const appThemes = [school];
40+
const appThemes = [school, digiAccess];
4141

4242
export {
4343
mapConfig, appThemes, appConfig

src/themes/example.js

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,52 @@ const school = {
2222
}
2323
};
2424

25+
26+
const digiAccess = {
27+
Name: "digitalAccess",
28+
Title: "Digital Access",
29+
Headline: "Shows locations of places that provides access to digital Services",
30+
Description: "This theme shows locations that provide access to digital services. These include access to " +
31+
"printing facilities, access to computers for public use and Wifi / internet access",
32+
Author: "MartinClarke",
33+
OSMFeatures: ["ways", "relations", "nodes"],
34+
GeoTags: {
35+
"amenity": ["library", "community_centre"]
36+
},
37+
AttributeTags: [
38+
{ attributeName: "Internet Access",
39+
attributeTag: "internet_access",
40+
attributeValues: ["wlan", "yes", "terminal", "wifi", "service"],
41+
icon: "wifi"
42+
},
43+
{ attributeName: "Printing Facilities",
44+
attributeTag: "digital_access",
45+
attributeValues: ["printer"],
46+
icon: "print"
47+
},
48+
{ attributeName: "Computer Access",
49+
attributeTag: "digital_access",
50+
attributeValues: ["computer"],
51+
icon: "desktop"
52+
},
53+
{ attributeName: "Membership Required",
54+
attributeTag: "digital_access:membership",
55+
attributeValues: ["yes"],
56+
icon: "exclamation",
57+
iconColor: "red"
58+
},
59+
60+
],
61+
overpassQuery: `[out:json];\
62+
(way["amenity"~"(library|community_centre)$"][~"^(internet_access|digital_access)$"~"."](around:20000,56.0019,-3.7893);\
63+
node["amenity"~"(library|community_centre)$"][~"^(internet_access|digital_access)$"~"."](around:20000,56.0019,-3.7893););\
64+
out body;>;out skel qt;`,
65+
mapConfig: {
66+
mapIcon: "wifi",
67+
color: "blue"
68+
}
69+
};
70+
2571
export {
26-
school
72+
school, digiAccess
2773
};

0 commit comments

Comments
 (0)