@@ -104,7 +104,58 @@ export {
104104
105105```
106106
107- ## Defining AttributeTags
107+ Example theme 2 - A more complicated theme example, with a defined list of AttributeTags
108+
109+ ``` javascript
110+
111+ let digiAccess = {
112+ Name: " digitalAccess" ,
113+ Title: " Digital Access" ,
114+ Headline: " Shows locations of places that provides access to digital Services" ,
115+ Description: " This theme shows locations that provide access to digital services. These include access to " +
116+ " printing facilities, access to computers for public use and Wifi / internet access" ,
117+ Author: " MartinClarke" ,
118+ OSMFeatures: [" ways" , " nodes" ],
119+ GeoTags: {
120+ " amenity" : [" library" , " community_centre" ]
121+ },
122+ AttributeTags: [
123+ { attributeName: " Internet Access" ,
124+ attributeTag: " internet_access" ,
125+ attributeValues: [" wlan" , " yes" , " terminal" , " wifi" , " service" ],
126+ icon: " wifi"
127+ },
128+ { attributeName: " Printing Facilities" ,
129+ attributeTag: " digital_access" ,
130+ attributeValues: [" printer" ],
131+ icon: " print"
132+ },
133+ { attributeName: " Computer Access" ,
134+ attributeTag: " digital_access" ,
135+ attributeValues: [" computer" ],
136+ icon: " desktop"
137+ },
138+ { attributeName: " Membership Required" ,
139+ attributeTag: " digital_access:membership" ,
140+ attributeValues: [" yes" ],
141+ icon: " exclamation" ,
142+ iconColor: " red"
143+ },
144+
145+ ],
146+ overpassQuery: ` [out:json];\
147+ (way["amenity"~"(library|community_centre)$"][~"^(internet_access|digital_access)$"~"."](around:20000,56.0019,-3.7893);\
148+ node["amenity"~"(library|community_centre)$"][~"^(internet_access|digital_access)$"~"."](around:20000,56.0019,-3.7893););\
149+ out body;>;out skel qt;` ,
150+ mapConfig: {
151+ mapIcon: " wifi" ,
152+ color: " blue"
153+ }
154+ };
155+
156+ ```
157+
158+ ## More on AttributeTags
108159
109160The attributeTags definition for a theme describes the feature attributes of interest and how these attributes map to
110161OpenStreetMap tags. This allows control over what type of information to display in a feature information popup, in addition
0 commit comments