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

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

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