mirror of https://gitee.com/antv-l7/antv-l7
style: lint style
This commit is contained in:
parent
711ea0a34d
commit
deb5398e86
|
@ -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, {
|
||||
|
|
|
@ -30,7 +30,7 @@ export default class LayerModelPlugin implements ILayerPlugin {
|
|||
if (layer.getSource().isTile) {
|
||||
layer.prepareBuildModel();
|
||||
// TODO 为什么执行两次
|
||||
|
||||
|
||||
layer.tileLayer = new TileLayer(layer);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -21,8 +21,6 @@ export default class RaterLayer extends BaseLayer<IRasterLayerStyleOptions> {
|
|||
}
|
||||
|
||||
public getModelType(): RasterModelType {
|
||||
|
||||
|
||||
// 根据 source 的类型判断 model type
|
||||
const parserType = this.layerSource.getParserType();
|
||||
switch (parserType) {
|
||||
|
|
|
@ -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 |
|
||||
|
|
Loading…
Reference in New Issue