提交 29af9546 作者: 陈楚尹

upd: 更新Map配置

上级 3510816c
...@@ -3,3 +3,10 @@ VITE_GLOB_APP_NAME = Basic APP ...@@ -3,3 +3,10 @@ VITE_GLOB_APP_NAME = Basic APP
# APP 描述 # APP 描述
VITE_GLOB_APP_DESCRIPTION = APP 基础工程 VITE_GLOB_APP_DESCRIPTION = APP 基础工程
# 地图基础服务ip
VITE_MAP_API_BASE_URL = 'https://hntq.zhijietianqi.com'
\ No newline at end of file
...@@ -675,9 +675,11 @@ export function createPopupHtml(entry: Recordable, mapping: Recordable) { ...@@ -675,9 +675,11 @@ export function createPopupHtml(entry: Recordable, mapping: Recordable) {
} }
export const getMapInstance = (ref: Ref<any>): mapboxgl.Map => toRaw(ref.value?.map) as mapboxgl.Map export const getMapInstance = (ref: Ref<any>): mapboxgl.Map => toRaw(ref.value?.map) as mapboxgl.Map
export function getGeoJSONSource(map: mapboxgl.Map, sourceName: string): mapboxgl.GeoJSONSource { export function getGeoJSONSource(map: mapboxgl.Map, sourceName: string): mapboxgl.GeoJSONSource {
return map.getSource(sourceName) as mapboxgl.GeoJSONSource return map.getSource(sourceName) as mapboxgl.GeoJSONSource
} }
export function getImageSource(map: mapboxgl.Map, sourceName: string): mapboxgl.ImageSource { export function getImageSource(map: mapboxgl.Map, sourceName: string): mapboxgl.ImageSource {
return map.getSource(sourceName) as mapboxgl.ImageSource return map.getSource(sourceName) as mapboxgl.ImageSource
} }
......
...@@ -12,6 +12,6 @@ ...@@ -12,6 +12,6 @@
<template> <template>
<view class="bg h-100vh"> <view class="bg h-100vh">
<CustomPicker /> <CustomPicker />
<Map /> <Map style="height: 100%" />
</view> </view>
</template> </template>
This source diff could not be displayed because it is too large. You can view the blob instead.
@font-face {
font-family: "iconfont"; /* Project id */
src: url('iconfont.ttf?t=1667453284784') format('truetype');
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-daohang:before {
content: "\e797";
}
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -27,6 +27,7 @@ export function appendScript(id: string, src: string) { ...@@ -27,6 +27,7 @@ export function appendScript(id: string, src: string) {
const script = document.createElement('script') const script = document.createElement('script')
script.id = id script.id = id
script.src = src script.src = src
script.onload = resolve script.onload = resolve
script.onerror = script.onabort = reject script.onerror = script.onabort = reject
document.head.appendChild(script) document.head.appendChild(script)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论