지금 현재 Google 퓨전 테이블 오버레이를 사용하여 다른지도보기로 변경할 수있는 자바 스크립트 메뉴가있는지도를 만들고 있습니다. 내가 프로젝트를 완료하지 못하게하는 문제로 나를 도울 수 있다면 정말 고마워.퓨전 테이블을 사용하는 Google Map API의 자바 스크립트 메뉴와 관련된 문제
이 내 Google지도 HTML 페이지입니다 : 나는이 코드를 추가 할 때
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<!DOCTYPE html>
<title>Met Sacramento Internship Map</title>
<!-- Style -->
<style>
body { font-family: Arial, sans-serif; }
#map_canvas { height: 500px; width:600px; }
</style>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var tableid = 567682;
var layer = new google.maps.FusionTablesLayer(567682);
function initialize() {
var latlng = new google.maps.LatLng(37.5213829, -122.172534);
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
layer.setMap(map);
}
//Change the query based on the user's selection
function changeMap(delivery) {
layer.setQuery("SELECT Address FROM " + tableid + " WHERE delivery LIKE '" + delivery + "'");
}
</script>
</script>
</head>
<body onload="initialize();">
Internship Status <select onchange="changeMap(this.value);">
<option value="%">--Select--</option>
<option value="ANIMALS">Animals</option>
<option value="BUSINESS">Business</option>
</select> <div id="map_canvas"></div>
</body>
</html>
내 문제가 발생
이 어떤 도움을 크게 감상 할 수//Change the query based on the user's selection
function changeMap(animals) {
layer.setQuery("SELECT Address FROM " + tableid + " WHERE Animals LIKE '" + Animals + "'");
, 나는 퓨전 테이블에 비교적 새로운 오전, Google지도 API 및 Javascript가 포함됩니다.
내 질문에해라. – tcooc
내가 그가 있다고 생각하지 않습니다 궁금
– Noah