enableHighResolution: true
}
var map = new BMap.Map(normalMapContainerId, mapOption);
var testpoint = new BMap.Point(lng, lat);
map.centerAndZoom(testpoint, 18);
var marker = new BMap.Marker(testpoint);
marker.enableDragging();
map.addOverlay(marker);
marker.addEventListener('dragend', function (e) {
panorama.setPosition(e.point);
panorama.setPov({ heading: -40, pitch: 6 });
});
}
}
})();
注:该JS中还封装了全景图的函数。
下面看一下后端代码
- public partial class ViewMap : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- InitLoad();
- }
- }
-
- private void InitLoad()
- {
- Coordinate coordinate = new Coordinate("39.92", "116.46");
- &n
|