MikesWei / CesiumVectorTile

Cesium VectorTileImageryProvider支持小数据量的geojson、shape文件 矢量 动态切片,实现贴地
https://mikeswei.github.io/CesiumVectorTile/
Apache License 2.0
412 stars 160 forks source link

如何加载本地的shp文件 #36

Open DramaLive opened 1 year ago

DramaLive commented 1 year ago

有一个需求是:本地选中shp文件,然后点击进行直接加载,我把获取到的文件直接放入source加载时会直接报错,请问本地加载时该怎么去使用呢

wangtengwei0707 commented 1 year ago

浏览器读不了本地文件

Papillon-forest commented 7 months ago

同问,没法解决嘛?

MikesWei commented 7 months ago

加载本地文件需要将.prj、.shp、.dbf至少这三个文件的File对象放到数组中传给source,即:source:[shpFile,prjFile,dbfFile]。