-
Notifications
You must be signed in to change notification settings - Fork 0
/
s4-onedoor-mapclick-plugin.xml
36 lines (31 loc) · 3.78 KB
/
s4-onedoor-mapclick-plugin.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<tool type="plugin">
<requires>
[if: ModuleDefined("s4") ]
<file type="script" name="/modules/s4/js/MapHandler.js?_=[s4.version]"/>
[endif]
</requires>
<src><![CDATA[
[if: ModuleDefined("s4") ]
var mode = "search";
var source = "Punkter";
var type = "Punkt";
if (tool.jsonConfig) {
if (tool.jsonConfig.mode)
mode = tool.jsonConfig.mode;
if (tool.jsonConfig.source)
source = tool.jsonConfig.source;
if (tool.jsonConfig.type)
type = tool.jsonConfig.type;
}
_s4View.createButton(
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgdmVyc2lvbj0iMS4xIgogICB3aWR0aD0iMjQiCiAgIGhlaWdodD0iMjQiCiAgIHZpZXdCb3g9IjAgMCAyNCAyNCIKICAgaWQ9InN2ZzE5IgogICBzb2RpcG9kaTpkb2NuYW1lPSJpbmZvcm1hdGlvbi1vdXRsaW5lLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS4xLjIgKGI4ZTI1YmU4MzMsIDIwMjItMDItMDUpIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvM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AgICAgICB4PSIwLjE0MzgzNTYyIgogICAgICAgeT0iMTEuMTkwMDI4IiAvPgogIDwvZz4KPC9zdmc+Cg==",
"Klik i kortet - vis info i OneDoor",
function () {
S4MapHandler.activatePointDrawer({ "mode": mode, "source": source, "type": type});
}
)
[endif]
]]>
</src>
</tool>