1.0.2 • Published 2 years ago

@nick-wilde/mvt-imagery-provider v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

mvt-imagery-provider

cesium加载矢量瓦片的ImageryProvider

安装

npm i @nick-wilde/mvt-imagery-provider

示例

const provider = new MVTImageryProvider({
  style: mapboxStyle,
  mapboxAccessToken:your_mapbox_access_token
});
provider.readyPromise.then(() => {
  viewer.imageryLayers.addImageryProvider(provider);
});

API Doc

{{>all-docs~}}

代码来源

核心代码来自: https://github.com/kikitte/MVTImageryProvider

局限性

  1. 不支持 background layer;
  2. mapbox style specification 高本版(v11及以上)部分样式语法(已发下部分filter)不支持;
  3. 每创建一个实例则对应创建一个webgl实例。而在Chrome环境下,webgl上下文实例最大不得超过16个。
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago