Donghoon Kim

Change index.html

......@@ -2,14 +2,6 @@ var map;
var pos;
var infowindow;
var service;
var result_food = [];
var result_entertainment = [];
var result_room = [];
export { pos as posiiton };
export { result_food as foodList };
export { result_entertainment as entList };
export { result_room as roomList };
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
......@@ -62,7 +54,7 @@ function searchPlace(str, placeType) {
service.nearbySearch({
location: pos,
radius: 500,
type: ['meal_takeaway']
type: [str.toString()]
}, callback_foods);
break;
case 'entertainment':
......@@ -76,7 +68,7 @@ function searchPlace(str, placeType) {
service.nearbySearch({
location: pos,
radius: 500,
type: ['lodging']
type: [str.toString()]
}, callback_rooms);
break;
default:
......
......@@ -9,8 +9,8 @@
<meta name="description" content="">
<meta name="author" content="">
<title>저기어때</title>
<title>뭐라도해</title>
<!-- Bootstrap core CSS-->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
......@@ -41,43 +41,43 @@
<!-- Sidebar -->
<ul class="sidebar navbar-nav">
<li class="nav-item">
<a class="nav-link" href="index.html">
<i class="fas fa-map-marker"></i>
<span>Map</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Foods.html">
<i class="fas fa-utensils" area-hidden ="true"></i>
<span>Foods</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Entertainment.html">
<i class="fas fa-gamepad"></i>
<span>Entertainment</span>
</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="Rooms.html">
<i class="fas fa-bed"></i>
<span>Rooms</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Favorite.html">
<i class="fas fa-heart"></i>
<span>Favorite</span>
</a>
</li>
</ul>
<div id="content-wrapper">
......@@ -186,7 +186,7 @@
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
......
......@@ -95,7 +95,14 @@
</ul>
<div id="content-wrapper">
<script type="text/javascript" src="js/getPlaceList.js"></script>
<script type='text/javascript'>
var result_food = [];
var result_entertainment = [];
var result_room = [];
var queryString = "?para1=" + result_food + "&para2=" + result_entertainment + "&para3=" + result_room;
window.location.href = "Foods.html" + queryString;
</script>
<script type="text/javascript" src="../api/getPlaceList.js"></script>
<div id="map"></div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDg4CkUEEt_96n1ork1nL5t4E_SpdKrgMI&libraries=places&callback=initMap" async defer></script>
<!-- Sticky Footer -->
......