<script type="text/javascript">
function initialize() {
var map = new BMap.Map('map');
var point=new BMap.Point(经度,纬度);
map.centerAndZoom(point,15);
map.enableScrollWheelZoom();
map.enableContinuousZoom();
map.addControl(new BMap.NavigationControl());
map.addControl(new BMap.OverviewMapControl());
map.addControl(new BMap.OverviewMapControl({ isOpen: true, anchor: BMAP_ANCHOR_BOTTOM_RIGHT }));
var localSearch = new BMap.LocalSearch(map);
localSearch.enableAutoViewport();
var marker = new BMap.Marker(point);
map.addOverlay(marker);
}
function loadMyScript() {
var script = document.createElement("script");
script.src = "http://api.map.baidu.com/api?v=2.0&秘钥&callback=initialize";
document.body.appendChild(script);
}
window.onreadystatechange = loadMyScript();
</script>
<div id="map" style="width:900px;height:500px"></div>