Ⅰ 如何在html網頁里插入<百度個性化地圖>不是普通白底地圖。請說明詳細操作步驟。
<!DOCTYPEhtml>
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>
<metaname="viewport"content="initial-scale=1.0,user-scalable=no"/>
<styletype="text/css">
body,html,#allmap{width:100%;height:100%;overflow:hidden;margin:0;font-family:"微軟雅黑";}
</style>
<scripttype="text/javascript"src="http://api.map..com/api?v=2.0&ak=您的密鑰"></script>
<title>個性化地圖</title>
</head>
<body>
<divid="allmap"></div>
</body>
</html>
<scripttype="text/javascript">
varmap=newBMap.Map('allmap');
map.centerAndZoom(newBMap.Point(116.404269,39.916042),12);
varmapStyle={
features:["road","building","water","land"],//隱藏地圖上的poi
style:"dark"//設置地圖風格為高端黑,目前支持normal(默認樣式),dark(深色樣式),light(淺色樣式)
}
map.setMapStyle(mapStyle);
functioncheckhHtml5()
{
if(typeof(Worker)==="undefined")
{
if(navigator.userAgent.indexOf("MSIE9.0")<=0)
{
alert("定製個性地圖示例:IE9以下不兼容,推薦使用網路瀏覽器、chrome、firefox、safari、IE10");
}
}
}
checkhHtml5();
</script>)