update 添加图标 完善地图功能
This commit is contained in:
@@ -7,6 +7,7 @@ export enum TabType {
|
||||
yiLiaoDian = '3', //医疗点
|
||||
jiuHuChe = '4', //救护车
|
||||
zhiShengJi = '5', //直升机
|
||||
diFangYiYuan = '6', //地方医院
|
||||
}
|
||||
|
||||
export const tabList = [
|
||||
@@ -32,6 +33,7 @@ export const tabList = [
|
||||
},
|
||||
{
|
||||
name: '地方医院',
|
||||
type: TabType.diFangYiYuan,
|
||||
},
|
||||
{
|
||||
name: '直升机',
|
||||
@@ -44,6 +46,7 @@ export const tabList = [
|
||||
|
||||
export const helicopter = new URL('/@/assets/img/helicopter.png', import.meta.url).href;
|
||||
export const mapbg = new URL('/@/assets/img/helicopter.png', import.meta.url).href;
|
||||
export const alarmIcon = new URL('/@/assets/img/alarm-icon.png', import.meta.url).href;
|
||||
|
||||
// 直升机位置数据
|
||||
export const aircraft = [
|
||||
@@ -77,6 +80,22 @@ export const aircraft = [
|
||||
},
|
||||
];
|
||||
|
||||
export function aircraftContent() {
|
||||
return `
|
||||
<div style="display: flex;justify-content: center;align-items: center;">
|
||||
<div>
|
||||
<div style="display: flex;justify-content: center;">
|
||||
<div class="helicopter"></div>
|
||||
</div>
|
||||
<div style="z-index:999;background-color:#0A8B18;">
|
||||
<h5 style="overflow: hidden;font-size:18px;color:#fff;white-space: nowrap;padding:0 4px;">
|
||||
4009-120-999
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>`;
|
||||
}
|
||||
|
||||
export function mapApiSwitch(type, params: any) {
|
||||
const basicParams = {
|
||||
lat: 34, //纬度34
|
||||
|
||||
Reference in New Issue
Block a user