-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwaypoints..html
More file actions
100 lines (67 loc) · 4.26 KB
/
waypoints..html
File metadata and controls
100 lines (67 loc) · 4.26 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!--
===============================================================================================================
== Project Name : HelloMaps
== Project Description : Hellomaps is a simple to use wesbite for finding the the optimal path from your Location to your Destination.
== Created by : Shubham Goswami
==============================================================================================================
-->
<!DOCTYPE html>
<html>
<head>
<title>Display waypoints on map</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="waypoints.css">
</head>
<body>
<div class="container">
<!-- Start Origin Address -->
<div class="row origin_address_section">
<!--Start Origin Address Field-->
<input id="address_origin" class="form-control address_origin" placeholder="Origin address"/>
<!--End Origin Address Field-->
<!--Start Fields Lat Lng Origin-->
<input id="lat_origin" class="form-control lat_lng" type="text" placeholder="Origin latitude">
<input id="lng_origin" class="form-control lat_lng" type="text" placeholder="Origin longitude">
<!--End Fields Lat Lng Origin-->
<!-- Start Add waypoint icon-->
<i id="add-way-point" class="fa fa-plus fa-lg icon_add_way_point" title="Add waypoint"></i>
<!-- End Add waypoint icon-->
</div>
<!-- End Origin Address -->
<!-- Start WayPoints Address -->
<div class="row waypoint_address_section">
<div class="waypoints">
</div>
</div>
<!-- End WayPoints Address -->
<!-- Start Destination Address -->
<div class="row destination_address_section">
<!--Start Destination Address Field-->
<input id="address_destination" class="form-control address_destination" placeholder="Destination address"/>
<!--Start Destination Address Field-->
<!--Start Fields Lat Lng Destination-->
<input id="lat_destination" class="form-control lat_lng" type="text" placeholder="Destination latitude">
<input id="lng_destination" class="form-control lat_lng" type="text" placeholder="Destination longitude">
<!--Start Fields Lat Lng Destination-->
<!-- Start Button Get Path-->
<div class = "button-style">
<a class="btn btn-warning btn-get-path" onclick="getpaths()"><b>Get Path</b></a>
<a style="position:absolute; top:7.7%; left: 61%;" class="btn btn-warning btn-get-path" onclick="window.location.reload();"><b>Reload</b></a>
</div>
<!-- End Button Get Path-->
</div>
<!-- End Destination Address -->
<!-- Start Map -->
<div id="map_canvas" class="my_map"></div>
<!-- End Map -->
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="waypoints.js"></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyALsqyxl-mKrzOjh_VWKUP8-UEHTp97ZhM&callback=initMap&libraries=geometry,places&sensor=false"">
</script>
</body>
</html>