Commit 648ede10 authored by 军师中郎将's avatar 军师中郎将

大屏端-统计分析-地图切换

parent 86c89247
......@@ -46,7 +46,7 @@ export class EditorMap {
constructor(contaienr, config = {}, vue) {
this.map = new AMap.Map(contaienr, {
viewMode: "3D",
center: [118.168541, 39.838353],
center: [114.684979,38.038292],
layers: [AMap.createDefaultLayer()], // layers 字段为空或者不赋值将会自动创建默认底图。
zoom: 14,
zooms: [3, 20],
......
......@@ -110,14 +110,14 @@
"
>
<!-- <iframe src="../../static/weather.html" frameborder="0"></iframe> -->
<iframe
<!-- <iframe
scrolling="no"
src="https://tianqiapi.com/api.php?style=tz&skin=pitaya&color=fff"
frameborder="0"
width="450"
height="30"
allowtransparency="true"
></iframe>
></iframe> -->
<!-- <iframe scrolling="no" src="https://yiketianqi.com/api.php?style=ty&skin=pitaya" frameborder="0" width="300" height="75" allowtransparency="true"></iframe> -->
</div>
......
......@@ -558,7 +558,7 @@ export default {
{
//center: path,
//mapStyle: "amap://styles/f71d3a3d73e14f5b2bf5508bf1411758",
center: [118.168541,39.838353],
center: [114.684979,38.038292],
zoom: 14.5,
},
this
......
......@@ -388,7 +388,7 @@ export default {
},
methods: {
mapInit() {
this.map = new XjxcMap("xjxcmap", {center: [118.168541,39.838353]}, this);
this.map = new XjxcMap("xjxcmap", {center: [114.684979,38.038292]}, this);
},
reset() {
this.searchData = {
......
......@@ -60,7 +60,6 @@ export default {
// "https://cdn.jsdelivr.net/gh/apache/echarts-website@asf-site/examples/data/asset/geo/HK.json"
// );
const geoJson = { features: jingkaiquArr, type: "FeatureCollection" };
console.log(geoJson);
this.$echarts.registerMap("HK", geoJson);
this.options = {
roam: true,
......@@ -134,7 +133,6 @@ export default {
createDom(data, parent) {
const Component = this.$Vue.extend(Infowindow);
const com = new Component();
// console.log(com.data=data)
return new Component({
data() {
return { data, parent };
......@@ -145,10 +143,6 @@ export default {
this.$refs.chars.myChats.dispatchAction({
type: "hideTip",
});
// const dom = document.getElementsByClassName('tooltip-box')[0];
// const parent =dom.parentElement;
// parent.removeChild(dom);
console.log("关闭");
},
},
};
......
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