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

z

parent d5c4d564
......@@ -850,18 +850,18 @@ class gaodeMap {
let that = this;
AMap.plugin(["AMap.AutoComplete", "AMap.PlaceSearch"], function() {
//输入提示
var autoOptions = {
input: inputId
};
let auto = new AMap.AutoComplete(autoOptions);
// var autoOptions = {
// input: inputId
// };
// let auto = new AMap.AutoComplete(autoOptions);
that.placeSearch = new AMap.PlaceSearch({
map: map
});
//构造地点查询类
auto.on("select", function(e) {
that.searchSelectAdcode = e.poi.adcode;
that.searchSelectName = e.poi.name;
});
// auto.on("select", function(e) {
// that.searchSelectAdcode = e.poi.adcode;
// that.searchSelectName = e.poi.name;
// });
});
}
......
......@@ -360,7 +360,7 @@ export default {
this.gaoMap.closeAddMarker();
this.gaoMap.removeMarkerDragg();
this.gaoMap.mapOperateType = "normal";
map.remove(this.gaodeMap.markerOverlays);
// map.remove(this.gaodeMap.markerOverlays);
},
search() {
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