-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHowToUse.htm
More file actions
39 lines (23 loc) · 725 Bytes
/
HowToUse.htm
File metadata and controls
39 lines (23 loc) · 725 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Coordinate Hanlder</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="js/CoordinateHandler.js"></script>
<script type="text/javascript">
var x, y;
x = 6576658; // coordinate form either PlaceService or ServiceGuideService unit
y = 1634296;
var ch = new CoordinateHandler();
var onBodyLoad = function () {
var pos = ch.gridToGeodetic(x, y); //return a pos object
console.log(pos, 'pos');
console.log(pos.lat, 'latitude');
console.log(pos.lon, 'longitude');
};
</script>
</head>
<body onload="onBodyLoad()">
<h1>View page source and web browser console for output</h1>
</body>
</html>