Ⅰ 如何在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>)