Skip to content

Commit

Permalink
add key and fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
kiang committed Jul 17, 2016
1 parent bf3f409 commit 0c9b73b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions chemical/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ <h2 class="text-muted">
</div>
</div>
<div style="text-align: center;">
<a href="https://github.com/kiang/TainanDengueMap">網站原始碼</a> |
<a href="http://data.tainan.gov.tw/dataset/4c260d97-e268-4b4a-8b15-c0fc92a25120">資料來源</a> |
<a href="https://github.com/kiang/TainanDengueMap">網站原始碼</a> |
<a href="http://data.tainan.gov.tw/dataset/4c260d97-e268-4b4a-8b15-c0fc92a25120">資料來源</a> |
<a href="http://health.tainan.gov.tw/tnhealth/Medical/Medical.aspx?Medical_Index=4&Medical_Class=0">台南衛生局登革熱專區</a>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="//maps.googleapis.com/maps/api/js?v=3"></script>
<script src="//maps.googleapis.com/maps/api/js?v=3&key=AIzaSyAHc3-HRqm9C4VnTyWz8ybzw7cY9GoGFRo"></script>
<script src="main.js"></script>
</body>
</html>
</html>
8 changes: 4 additions & 4 deletions chemical/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function initialize() {
center: {lat: 23.00, lng: 120.30}
});

$.getJSON('../cunliTN.json', function (data) {
$.getJSON('../tainan/2015/cunliTN.json', function (data) {
cunli = map.data.addGeoJson(data);
});

Expand All @@ -39,7 +39,7 @@ function initialize() {
showOverlays();
}
});

$('a#btnNext').click(function () {
currentOverlayIndex -= 1;
if (currentOverlayIndex < 0) {
Expand Down Expand Up @@ -87,7 +87,7 @@ function showOverlays() {
strokeWeight: 1
}
});

for(i in markers) {
markers[i].setMap(null);
}
Expand Down Expand Up @@ -118,4 +118,4 @@ function showOverlays() {
map.fitBounds(bounds);
}

google.maps.event.addDomListener(window, 'load', initialize);
google.maps.event.addDomListener(window, 'load', initialize);

0 comments on commit 0c9b73b

Please sign in to comment.