-
Notifications
You must be signed in to change notification settings - Fork 0
/
eventListeners.js
56 lines (40 loc) · 1.38 KB
/
eventListeners.js
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
//TO DO
// figure out maps API and eventlisteners
let btn = document.getElementById('test-btn');
let btnTestes2 = document.getElementById('test-btn-2')
let radiusSelect = document.getElementById('radius-select');
let searchInput = document.getElementById('search-input');
let submitBtn = document.getElementById('submit');
btn.addEventListener("click", function(){
//test1
// let radiusValue = parseInt(radiusSelect.value, 10) * 1609
// let testCenter = new google.maps.LatLng(37.3382, -121.8863)
// addNearestMarkers(fpactData, testCenter,radiusValue)
//test2
//deleteMarkers();
//test3
//map.setCenter(new google.maps.LatLng(37.3382, -121.8863))
//test4
//addAllMarkers(fpactData)
//test5
let testAddress2 = 'PLANNED PARENTHOOD ASSC, SAN JOSE, CA, 95126';
let testPlace = getPlacesData(testAddress2);
})
btnTestes2.addEventListener("click", function(){
let testAddress2 = 'PLANNED PARENTHOOD ASSC, SAN JOSE, CA, 95126';
logAddress();
})
searchInput.addEventListener("mouseover", function(){
//autoComplete();
})
submitBtn.addEventListener("click", function(){
//console.log(searchInput.value);
})
//let autocomplete = new google.maps.places.Autocomplete(searchInput);
//===============================================
//MAP LISTENERS
//===============================================
// map.addListener("click", function(){
// console.log("clicked")
// deleteMarkers()
// })