-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (43 loc) · 1.42 KB
/
index.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
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="https://code.jquery.com/jquery-1.12.1.min.js"></script>
<script src="https://www.govmap.gov.il/govmap/api/govmap.api.js"></script>
<script type="text/javascript">
$(document).ready(function () {
govmap.createMap('map',
{
token: 'f1a97b57-e494-48ac-8970-ab15b5a22c00',
layers: ["GASSTATIONS", "PARCEL_HOKS", "KSHTANN_ASSETS", "bus_stops", "PARCEL_ALL"],
showXY: true,
identifyOnClick: true,
isEmbeddedToggle: false,
background: "1",
layersMode: 1,
zoomButtons: false
});
});
function showExample() {
const inputValue = document.getElementById('input').value;
var params = {
type: govmap.locateType.lotParcelToAddress,
address: inputValue
}
govmap.searchAndLocate(params).then(function (response) {
console.log(response)
});
}
</script>
</head>
<body>
<div id="map" style="width:600px;height:600px"></div>
<div class="flex">
<input type="text" id="input" />
<button onClick="showExample()">getgushandparcel</button>
</div>
</body>
<style>
.flex {
display: flex;
}
</style>
</html>