Compare commits
No commits in common. "37acf0f6297db414ddea8f59f71997c2f63b8229" and "4eb893e60c5f8df99d32146be35eb7f2fca86b52" have entirely different histories.
37acf0f629
...
4eb893e60c
Binary file not shown.
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB |
|
|
@ -4,6 +4,7 @@ export function mapFun() {
|
|||
|
||||
const ceshiClick = () => {
|
||||
console.log('ceshi');
|
||||
alert('ceshi');
|
||||
};
|
||||
|
||||
// 根据坐标点跳转位置
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ export const eventCommonHandler = (
|
|||
|
||||
EventBus.emit(elementList[j].elementId[k] + type, params);
|
||||
|
||||
// 分组内所有组件默认添加通信
|
||||
// 分组内组件通信
|
||||
componentList[i]?.groupList?.forEach((groupItem,idx)=>{
|
||||
EventBus.emit(groupItem.id +"dataupdate", params);
|
||||
})
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ export function mapFun() {
|
|||
|
||||
const ceshiClick = () => {
|
||||
console.log('ceshi');
|
||||
alert('ceshi');
|
||||
};
|
||||
|
||||
// 根据坐标点跳转位置
|
||||
|
|
|
|||
|
|
@ -314,11 +314,9 @@ const vChartRef = ref<HTMLElement>()
|
|||
|
||||
onMounted(()=>{
|
||||
handlerGetLayerTree();
|
||||
|
||||
EventBus.on(props.chartConfig.id + 'GraphicClick', (data) => {
|
||||
console.log('data', data);
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
const isFirstLoad = ref(true);
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ const initMap = (newData: any) => {
|
|||
|
||||
window.globalMap = map;
|
||||
|
||||
|
||||
// 所有绑定的点击事件
|
||||
let bindEvents = props.chartConfig.events.interactConfigEvents
|
||||
|
||||
|
|
@ -75,8 +76,12 @@ const initMap = (newData: any) => {
|
|||
|
||||
// 图层点击事件
|
||||
window.globalMap.on(mars3d.EventType.click,(event)=>{
|
||||
|
||||
// alert("layer id:"+event.layer.id+"; graphic id:"+event.graphic.options.attr.id);
|
||||
|
||||
// 查找绑定的点击事件的图层
|
||||
for(let i=0;i<bindEvents.length;i++){
|
||||
console.log("bindEvent",bindEvents[i])
|
||||
for(let j=0;j<bindEvents[i].movementList.length;j++){
|
||||
console.log("bindEvent",bindEvents[i].movementList[j])
|
||||
if(event.layer.id == bindEvents[i].movementList[j].params){
|
||||
|
|
@ -84,6 +89,7 @@ const initMap = (newData: any) => {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
// 初始化矢量图层
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -95,7 +96,7 @@ const handlerLoadFirePoint = (points:[])=>{
|
|||
style: {
|
||||
image: "/public/map/fire.png",
|
||||
clampToGround: true,
|
||||
scale: 0.8,
|
||||
scale: 0.4,
|
||||
label: {
|
||||
text: item.title,
|
||||
font_size: 12,
|
||||
|
|
|
|||
|
|
@ -25,8 +25,7 @@ import { CreateComponentType } from '@/packages/index.d';
|
|||
import { useChartDataFetch } from '@/hooks';
|
||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore';
|
||||
import { EventBus } from '@/utils/eventBus';
|
||||
import { getAppEnvConfig } from '@/utils/env'
|
||||
var { VITE_GLOB_API_URL } = getAppEnvConfig();
|
||||
|
||||
|
||||
import { replaceSqlParams } from '@/utils/sqlHandler';
|
||||
|
||||
|
|
@ -70,12 +69,13 @@ onMounted(()=>{
|
|||
desc:resData[0][firstLetterToLowerCase(item.en_name)]
|
||||
}
|
||||
data.push(info);
|
||||
|
||||
})
|
||||
props.chartConfig.option.dataset.imgArr = [VITE_GLOB_API_URL+"/"+resData[0].image]
|
||||
console.log("0000",)
|
||||
|
||||
props.chartConfig.option.dataset.data = data;
|
||||
});
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
function firstLetterToLowerCase(str) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue