-
Notifications
You must be signed in to change notification settings - Fork 1
/
map1.html
43 lines (43 loc) · 1.36 KB
/
map1.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
<!DOCTYPE html>
<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: '5a4b8472-b95b-4687-8179-0ccb621c7990',
layers: ["cell_active"],
showXY: true,
identifyOnClick: true,
isEmbeddedToggle: false,
background: "1",
layersMode: 4,
zoomButtons:false,
visibleLayers: ["cell_active"],
onLoad: function (e){
handleLoad()
},
onClick: function (e)
{
handleLoad()
showResult(e);
},
onPan: function (e)
{
showResult(e);
}
});
});
var x1, y1, address;
function handleLoad(e) {
govmap.setVisibleLayers(["cell_active"]);
}
</script>
</head>
<body style="margin: 0px;">
<div id="map" style="width:100vw;height:100vh"></div>
</head>
<body>