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,7 +9,7 @@
<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">
......
......@@ -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 -->
......