Commit 938daa57 by 前端

修改区域查车交互

1 parent cb472f67

19.4 KB | W: | H:

515 Bytes | W: | H:

src/assets/images/icon_car.png
src/assets/images/icon_car.png
src/assets/images/icon_car.png
src/assets/images/icon_car.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -20,14 +20,15 @@ function MapService() {
var zhongliType = sessionStorage.getItem('zhongliType');//获取是否仲利账号状态,从本地内存中拿取数据
MapService.prototype = {
init: function (id) {
init: function (id,options) {
var self = this;
let params = options||{}
if(self.map){
self.map.destroy()
}
var map = new AMap.Map(id, {
resizeEnable: true,
zoom: 11
zoom: params.zoom||11
});
// 添加比例尺
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!