-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttp%3A%2F%2Fhelp.metaphacts.com%2Fresource%2FSemanticMap.html
73 lines (66 loc) · 2.71 KB
/
http%3A%2F%2Fhelp.metaphacts.com%2Fresource%2FSemanticMap.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
<div class="metaphacts_help">
<ol class="breadcrumb" style="background:white;border:none;padding-left:0px;">
<li>
<semantic-link title="Help" uri="http://help.metaphacts.com/resource/Start">Help</semantic-link>
</li>
<li>
<semantic-link title="Documentation" uri="http://help.metaphacts.com/resource/DocumentationOverview">Documentation</semantic-link>
</li>
<li>
<semantic-link title="Components" uri="http://help.metaphacts.com/resource/HTML5Components">Components</semantic-link>
</li>
<li class="active">Map Component</li>
</ol>
<h1> Map Component </h1>
<div class="documentation__intro">
<div class="documentation__intro__description">
Used for displaying spatial data on a map.
<ul>
<li>WKT point/polygons are supported, however, currently only be approximated as simple markers on the map. </li>
<li>Coordinates are assumed to be in EPSG:4326 (WGS84) and will be transformed internally to EPSG:3857</li>
</ul>
</div>
<div class="documentation__intro__demo" >
<semantic-map config='{
"query":"SELECT ?lat ?lng ?description ?link WHERE {
VALUES(?lat ?lng ?description ?link){
(\"49.2928\" \"8.6484\" \"Metaphacts GmbH\" <http://metaphacts.com>)
(\"51.9500\" \"7.6240\" \"Munster City\" <http://www.wikidata.org/wiki/Q2742>)
}
}"
}'> </semantic-map>
</div>
</div>
<h2>Configuration </h2>
<h2>Examples </h2>
<h3>Latitude and Longitude Bindings </h3>
<div class="documentation__example">
<div class="documentation__example__description">
</div>
<div class="documentation__example__demo">
<mp-code-example><semantic-map data-config='{
"query":"SELECT ?lat ?lng ?description ?link WHERE {
VALUES(?lat ?lng ?description ?link){
(\"49.2928\" \"8.6484\" \"Metaphacts GmbH\" <http://metaphacts.com>)
(\"51.9500\" \"7.6240\" \"Munster City\" <http://www.wikidata.org/wiki/Q2742>)
}
}"
}'> </semantic-map>
</mp-code-example>
</div>
</div>
<h3>WKT Point Literal </h3>
<div class="documentation__example">
<div class="documentation__example__description">
</div>
<div class="documentation__example__demo">
<mp-code-example> <semantic-map config='{
"query":"SELECT ?wkt ?description ?link WHERE {
VALUES(?wkt ?description ?link){
(\"Point( 8.65 49.3)\" \"Metaphacts GmbH\" <http://metaphacts.com>)
}
}"
}'> </semantic-map></mp-code-example>
</div>
</div>
</div>