MikesWei / CesiumVectorTile

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

获取携带参数的文件url时,提示The data options.source provider is not supported.。 #8

Open bestsamcn opened 4 years ago

bestsamcn commented 4 years ago

你好,我在使用这个工具的时候,发现无法使用携带参数的文件url。

  1. 使用文件url格式如下: http://localhost:4000/assets/abc/a.json?token=abc.def.acd
  2. 报错内容 Uncaught (in promise) Error: The data options.source provider is not supported.
  3. 查看源码时,发现是Path.GetExtension这个方法的问题。因为token中有点.,所以实际获取到的扩展名是.acd,而不是.json
MikesWei commented 4 years ago

这个我确实没考虑到,下次更新我会考虑这个问题的