style: lint style

This commit is contained in:
shihui 2022-11-27 09:31:10 +08:00
parent 711ea0a34d
commit deb5398e86
4 changed files with 3 additions and 5 deletions

View File

@ -399,7 +399,7 @@ export default class BaseLayer<ChildLayerStyleOptions = {}>
// 获取插件集
this.plugins = this.container.getAll<ILayerPlugin>(TYPES.ILayerPlugin);
// 完成插件注册,传入场景和图层容器内的服务
for (const plugin of this.plugins) {
plugin.apply(this, {

View File

@ -30,7 +30,7 @@ export default class LayerModelPlugin implements ILayerPlugin {
if (layer.getSource().isTile) {
layer.prepareBuildModel();
// TODO 为什么执行两次
layer.tileLayer = new TileLayer(layer);
return;
}

View File

@ -21,8 +21,6 @@ export default class RaterLayer extends BaseLayer<IRasterLayerStyleOptions> {
}
public getModelType(): RasterModelType {
// 根据 source 的类型判断 model type
const parserType = this.layerSource.getParserType();
switch (parserType) {

View File

@ -50,7 +50,7 @@ const source = new Source(data, {
`geojsonOptions` 支持如下参数:
| 参数 | 类型 | 默认值 | 描述 |
| -------------- | ----------- | -------- |-------------------------- |
| -------------- | ----------- | -------- | -------------------------------------------------------------- | ------------------------------------------------------- |
| maxZoom | `number` | `14` | max zoom to preserve detail on |
| indexMaxZoom | `number` | `5` | max zoom in the tile index |
| indexMaxPoints | `number` | `100000` | max number of points per tile in the tile index |