Commit fc10f4fc authored by 纪泽龙's avatar 纪泽龙

z

parent d5c4d564
...@@ -850,18 +850,18 @@ class gaodeMap { ...@@ -850,18 +850,18 @@ class gaodeMap {
let that = this; let that = this;
AMap.plugin(["AMap.AutoComplete", "AMap.PlaceSearch"], function() { AMap.plugin(["AMap.AutoComplete", "AMap.PlaceSearch"], function() {
//输入提示 //输入提示
var autoOptions = { // var autoOptions = {
input: inputId // input: inputId
}; // };
let auto = new AMap.AutoComplete(autoOptions); // let auto = new AMap.AutoComplete(autoOptions);
that.placeSearch = new AMap.PlaceSearch({ that.placeSearch = new AMap.PlaceSearch({
map: map map: map
}); });
//构造地点查询类 //构造地点查询类
auto.on("select", function(e) { // auto.on("select", function(e) {
that.searchSelectAdcode = e.poi.adcode; // that.searchSelectAdcode = e.poi.adcode;
that.searchSelectName = e.poi.name; // that.searchSelectName = e.poi.name;
}); // });
}); });
} }
......
...@@ -360,7 +360,7 @@ export default { ...@@ -360,7 +360,7 @@ export default {
this.gaoMap.closeAddMarker(); this.gaoMap.closeAddMarker();
this.gaoMap.removeMarkerDragg(); this.gaoMap.removeMarkerDragg();
this.gaoMap.mapOperateType = "normal"; this.gaoMap.mapOperateType = "normal";
map.remove(this.gaodeMap.markerOverlays); // map.remove(this.gaodeMap.markerOverlays);
}, },
search() { search() {
this.searchClear(); this.searchClear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment