-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
80 lines (80 loc) · 2.17 KB
/
test.html
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
---
{
"title": "Geomap",
"language": "en",
"category": "Plugins",
"description": "Displays a dynamic map over which information from additional sources can be overlaid.",
"tag": "geomap",
"parentdir": "geomap",
"altLangPrefix": "geomap",
"js": ["demo/client_functions"],
"dateModified": "2016-04-22"
}
---
<div id="sample_map_filter" class="wb-geomap" data-wb-geomap='{
"basemap" : {
"title": "OSM Map",
"type": "osm",
"mapOptions": {
"center": [ -122, 52 ],
"zoomLevel": 6
}
},
"overlays": [
{
"title": "Projects",
"caption": "This data is extracted from the <a href=\"http://geogratis.gc.ca/api/en/nrcan-rncan/ess-sst/457ede2f-fd65-5936-ab60-3fe71da0e98b\">Principal mineral areas of Canada</a> publication.",
"type": "kml",
"url": "demo/projects.kml",
"visible": true,
"datatable": true,
"tooltips": true,
"tooltipText": "Operation",
"popups": true,
"attributes": {
"Program": "Program",
"Client": "Client",
"Amount": "Amount",
"Project": "Project"
},
"style": {
"type": "unique",
"field": "Program",
"init": {
"Tourism Relief Fund": {
"externalGraphic": "https://img.icons8.com/small/2x/pin.png",
"graphicOpacity": "0.5",
"graphicWidth": "32",
"graphicHeight": "32"
},
"Aerospace Recovery Initiative": {
"externalGraphic": "https://img.icons8.com/small/2x/pin3.png",
"graphicOpacity": "0.5",
"graphicWidth": "32",
"graphicHeight": "32"
}
},
"select": {
"externalGraphic": "https://img.icons8.com/small/2x/pin3.png",
"graphicOpacity": "1",
"graphicWidth": "32",
"graphicHeight": "32"
}
}
}
]
}'>
<div class="row">
<div class="col-md-9">
<!-- Insert Map Start (mandatory) -->
<div class="wb-geomap-map"></div>
<!-- Insert Map End -->
</div>
<!-- Insert legend Data Start (mandatory) -->
<div class="col-md-3">
<div class="wb-geomap-legend"></div>
</div>
<!-- Insert legend Data End -->
</div>
<div class="wb-geomap-layers"></div>
</div>