-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.html
40 lines (36 loc) · 1.46 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
<html>
<head>
<title>Leaflet TripGo Routing</title>
<link rel="shortcut icon" href="images/favicon.ico">
<!-- leaflet css -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/>
<!-- leaflet js -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<link rel="stylesheet" href="css/TripgoRouting.css"/>
<script src="dist/TripgoRouting.js"></script>
<script src="lib/Polyline.encoded.js"></script>
<script src="lib/jquery-3.2.1.js"></script>
</head>
<body>
<div id="map"></div>
<script>
let options ={
"mapId" : "map",
"googleTile": true,
"mapCenter" : {
"lat": 51.511011,
"lng": -0.125448
},
"floatPanel": false,
"tripgoApiKey": "your TripGo api key"
}
L.tripgoRouting.mapLayer.initialize(options);
</script>
<a href="https://github.com/skedgo/tripkit-leaflet" target="_blank">
<img style="position: absolute; top: 0; right: 0; border: 0; z-index:1500"
src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67"
alt="Fork me on GitHub"
data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png">
</a>
</body>
</html>