This repository has been archived by the owner on Mar 16, 2022. It is now read-only.
/
openlayers.html.xqy
60 lines (50 loc) · 2.32 KB
/
openlayers.html.xqy
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
xquery version "1.0-ml";
import module namespace vh = "http://marklogic.com/roxy/view-helper" at "/roxy/lib/view-helper.xqy";
declare option xdmp:mapping "false";
(: use the vh:required method to force a variable to be passed. it will throw an error
: if the variable is not provided by the controller :)
(:
declare variable $title as xs:string := vh:required("title");
or
let $title as xs:string := vh:required("title");
:)
(: grab optional data :)
(:
declare variable $stuff := vh:get("stuff");
or
let $stuff := vh:get("stuff")
:)
<div xmlns="http://www.w3.org/1999/xhtml" class="mljstest openlayers">
<link rel="stylesheet" type="text/css" href="/css/mljs/widgets.css" />
<script type="text/javascript" src="/js/mljs/mljs.js"></script>
<script type="text/javascript" src="/js/mljs/mljs-xhr2.js"></script>
<script type="text/javascript" src="/js/OpenLayers-2.13.1/OpenLayers.debug.js"></script> <!-- debug deployment only - remove '.debug' for production use -->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<!-- need to be online for this -->
<script type="text/javascript" src="/js/mljs/widgets.js"></script>
<script type="text/javascript" src="/js/mljs/widget-search.js"></script>
<script type="text/javascript" src="/js/mljs/widget-openlayers.js"></script>
<script type="text/javascript" src="/js/mljs/widget-address.js"></script>
<script type="text/javascript" src="/js/heatmap/heatmap.js"></script>
<script type="text/javascript" src="/js/heatmap/heatmap-openlayers.js"></script>
<script>OpenLayers.Console = window.console || OpenLayers.Console;</script> <!-- debug deployment only -->
<script type="text/javascript" src="/js/mljstest/page-mljstest-openlayers.js"></script>
<div class="container_12">
<div id="hint" class="grid_12"><i>Hint: Type in 'Westminster, London, UK' to recenter map</i></div>
</div>
<div class="container_12">
<div id="errors" class="grid_12"></div>
</div>
<div class="container_12">
<div id="addressbar" class="grid_12">address</div>
</div>
<div class="container_12">
<div id="map" class="grid_12" style="height: 300px;">Map</div>
</div>
<div class="container_12">
<div id="selection" class="grid_12">Selection</div>
</div>
<div class="container_12">
<div id="results" class="grid_12">Results</div>
</div>
</div>