-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo-locateme.html
43 lines (29 loc) · 955 Bytes
/
demo-locateme.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
<html>
<head>
<title>HERE Generic map</title>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<link rel="stylesheet" type="text/css" href="../dist/css/heremap.css" />
</head>
<body>
<div id="mymap"></div>
<script src="../dist/libhere.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../dist/heremap.min.js" type="text/javascript" charset="utf-8"></script>
<script src="credentials.js" type="text/javascript" charset="utf-8"></script>
<script>
var hm = window.heremap;
hm.config({
app_id: APP_ID,
app_code: APP_CODE,
});
hm.map(
"mymap", {
zoom: 12
}
);
hm.locateMe((coord, acc) => {
console.log("gps", coord, acc)
});
</script>
</body>
</html>