2014-05-11 12:26:47 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
|
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;}
|
|
|
|
|
</style>
|
|
|
|
|
<script src="http://api.map.baidu.com/api?v=2.0&ak=FIWdfO6PROWOlG7UplZpGKBw"></script>
|
|
|
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
|
|
|
|
<title>上海艺术地图</title>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="allmap"></div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
// 百度地图API功能
|
|
|
|
|
var map = new BMap.Map("allmap"); // 创建Map实例
|
|
|
|
|
map.centerAndZoom("上海",15); // 初始化地图,设置中心点坐标和地图级别。
|
|
|
|
|
|
2014-05-17 23:34:40 +08:00
|
|
|
// https://github.com/unixcrh/DOUBANTONGCHENG/blob/master/DouBanTongCheng/ContentVC.m
|
|
|
|
|
$.getJSON("https://api.douban.com/v2/event/list?loc=shanghai&type=exhibition&max-results=50&callback=?", function(result){
|
|
|
|
|
//response data are now in the result variable
|
|
|
|
|
console.log(result);
|
|
|
|
|
});
|
2014-05-11 12:26:47 +08:00
|
|
|
|
|
|
|
|
</script>
|