import anHui from '@/assets/json/anHui.json' // 标准的geoJson数据 网上有很多
const layer = new VectorLayer({
source: new VectorSource({
features: new GeoJSON().readFeatures(anHui, {
dataProjection: 'EPSG:4490',
featureProjection: 'EPSG:3857'
})
}),
style: new Style({
vue3 + openlayers---实现矢量图层聚焦
最新推荐文章于 2024-05-31 23:01:38 发布