使用产品:iserver 10.2.1
操作系统:win11 x64
数据类型: 文件型
问题详细描述:supermap+vue-leaflet加载大地坐标系GCS_China_Geodetic_Coordinate_System_2000地图, 初始化、放大,部分瓦片不显示
代码:
<template>
<div id="map"></div>
</template>
<script>
import L from 'leaflet'
import { TiledMapLayer } from '@supermap/iclient-leaflet'
export default {
name: 'AddMap',
data() {
return {
map: {},
mapUrl: 'http://111.39.31.82:8800/portalproxy/54di5l17/iserver/services/map-ugcv5-NGDT0310/rest/maps/NGDT0310'
}
},
mounted() {
this.init()
},
methods: {
init() {
this.map = L.map('map', {
crs: L.CRS.EPSG4326,
center: [30.61, 118.98],
maxZoom: 18,
zoom: 10
})
new TiledMapLayer(this.mapUrl).addTo(this.map)
}
}
}
</script>
<style>
#map {
margin: 0;
padding: 0;
overflow: hidden;
background: #fff;
width: 100%;
height: 100%;
position: absolute;
}
</style>
初始化图片:
顶部放大后: