【实例简介】百度地图设置坐标,标注坐标地理位置
【实例截图】
【核心代码】// 百度地图API功能
function creat_map(e){
map = new BMap.Map("mapbox");
//map.centerAndZoom(new BMap.Point(117.143831,36.677922), 16);
//添加带有定位的导航控件
var navigationControl = new BMap.NavigationControl({
// 靠左上角位置
anchor: BMAP_ANCHOR_TOP_LEFT,
// LARGE类型
type: BMAP_NAVIGATION_CONTROL_LARGE,
// 启用显示定位
enableGeolocation: true
});
map.addControl(navigationControl);
var mapStyle ={
features: ["road", "building","water","land","point"],//隐藏地图上的poi
style : "light" //设置地图风格为高端黑
};
map.setMapStyle(ma