修复 simpleGIS/tileMap 高德地形读取的问题

This commit is contained in:
hawk86104 2025-03-11 16:54:11 +08:00
parent d66094e2dc
commit 9a1e020905
2 changed files with 3 additions and 5 deletions

View File

@ -4,7 +4,7 @@
* @Autor: 地虎降天龙
* @Date: 2024-02-26 18:58:32
* @LastEditors: 地虎降天龙
* @LastEditTime: 2024-09-18 09:36:50
* @LastEditTime: 2025-03-11 16:48:26
-->
<template>
<primitive :object="map" :rotation="[-Math.PI / 2, 0, 0]" />
@ -61,7 +61,7 @@ mapProvider.source = 'https://webrd04.is.autonavi.com/appmaptile?lang=zh_cn&size
mapProvider.showTileNo = false
mapProvider.useWorker = true
const meshProvider = new TerrainMeshProvider(martiniProvider, mapProvider)
const meshProvider = new TerrainMeshProvider(planProvider, mapProvider)
meshProvider.showBoundingBox = false
meshProvider.wireframe = false
meshProvider.flatShading = false

View File

@ -4,13 +4,11 @@
* @Autor: 地虎降天龙
* @Date: 2024-02-24 10:03:05
* @LastEditors: 地虎降天龙
* @LastEditTime: 2024-09-19 17:25:58
* @LastEditTime: 2025-03-11 16:52:58
-->
<template>
<TresCanvas v-bind="state" window-size>
<Suspense>
<tileMapMesh v-bind="tileMapState" ref="tileMapMeshRef" :bbox="[80, 16, 128, 50]" />
</Suspense>
</TresCanvas>
<raycasterEvent :tileMapRef="tileMapMeshRef" />
</template>