请问:百度map中container是指哪个控件? var 地图 = new BMap.Map("container")
请教:百度地图中container是指哪个控件? var map = new BMap.Map("container");
请教:百度地图开发中,有以下这段代码,它是怎样与VC控件联系在一样的?地图数据是怎样画出来了?
<!doctype html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>Baidu Map</title>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.2&services=true">
<!-- add baidu map api -->
</script>
</head>
<body>
<div id="container" style="width: 1000px; height: 700px;">
</div>
</body>
</html>
<script type="text/javascript">
var map = new BMap.Map("container"); // new Map
var point = new BMap.Point(116.404, 39.915); // Location, (经度, 纬度)
map.centerAndZoom(point, 10); // show Map
// 添加缩放功能
map.enableScrollWheelZoom();
map.enableKeyboard();
</script>
------解决方案--------------------
map will generate in this div
<div id="container" style="width: 1000px; height: 700px;">
请教:百度地图开发中,有以下这段代码,它是怎样与VC控件联系在一样的?地图数据是怎样画出来了?
<!doctype html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>Baidu Map</title>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.2&services=true">
<!-- add baidu map api -->
</script>
</head>
<body>
<div id="container" style="width: 1000px; height: 700px;">
</div>
</body>
</html>
<script type="text/javascript">
var map = new BMap.Map("container"); // new Map
var point = new BMap.Point(116.404, 39.915); // Location, (经度, 纬度)
map.centerAndZoom(point, 10); // show Map
// 添加缩放功能
map.enableScrollWheelZoom();
map.enableKeyboard();
</script>
------解决方案--------------------
map will generate in this div
<div id="container" style="width: 1000px; height: 700px;">