2019-10-29 14:42:41 +08:00
|
|
|
import { container, ILayerPlugin, TYPES } from '@l7/core';
|
2019-10-08 19:20:12 +08:00
|
|
|
import BaseLayer from './core/BaseLayer';
|
2019-11-14 11:50:12 +08:00
|
|
|
import HeatMapGrid3dLayer from './heatmap/gird3d';
|
2019-10-30 11:52:36 +08:00
|
|
|
import HeatMapGridLayer from './heatmap/grid';
|
2019-11-01 15:36:20 +08:00
|
|
|
import HeatMapLayer from './heatmap/heatmap';
|
2019-11-14 11:50:12 +08:00
|
|
|
import HeatMapHexagonLayer from './heatmap/hexagon';
|
2019-10-30 14:53:18 +08:00
|
|
|
import ArcLineLayer from './line/arc';
|
2019-10-30 16:38:59 +08:00
|
|
|
import Arc2DLineLayer from './line/arc2d';
|
2019-11-10 21:20:26 +08:00
|
|
|
import Arc3DLineLayer from './line/arc3d';
|
|
|
|
import DashLineLayer from './line/dash';
|
2019-10-30 16:38:59 +08:00
|
|
|
import LineLayer from './line/index';
|
2019-10-30 10:07:17 +08:00
|
|
|
import Point3dLayer from './point/extrude';
|
2019-11-07 00:52:03 +08:00
|
|
|
import PointLayer from './point/fill';
|
2019-10-30 10:07:17 +08:00
|
|
|
import PointImageLayer from './point/image';
|
2019-11-14 11:50:12 +08:00
|
|
|
import PointNormalLayer from './point/normal';
|
2019-11-16 22:22:13 +08:00
|
|
|
|
2019-11-01 15:36:20 +08:00
|
|
|
import TextLayer from './point/text';
|
2019-10-24 10:38:11 +08:00
|
|
|
// import Point from './point/point';
|
2019-10-08 19:20:12 +08:00
|
|
|
import PolygonLayer from './polygon';
|
2019-10-30 10:07:17 +08:00
|
|
|
import Polygon3DLayer from './polygon/polygon3D';
|
2019-10-30 11:52:36 +08:00
|
|
|
import ImageLayer from './raster/image';
|
2019-11-01 15:36:20 +08:00
|
|
|
import RasterLayer from './raster/raster';
|
2019-11-16 22:22:13 +08:00
|
|
|
import Raster2DLayer from './raster/raster2d';
|
2019-10-29 14:42:41 +08:00
|
|
|
|
|
|
|
import ConfigSchemaValidationPlugin from './plugins/ConfigSchemaValidationPlugin';
|
|
|
|
import DataMappingPlugin from './plugins/DataMappingPlugin';
|
|
|
|
import DataSourcePlugin from './plugins/DataSourcePlugin';
|
|
|
|
import FeatureScalePlugin from './plugins/FeatureScalePlugin';
|
2019-11-01 17:15:20 +08:00
|
|
|
import LightingPlugin from './plugins/LightingPlugin';
|
2019-10-29 14:42:41 +08:00
|
|
|
import MultiPassRendererPlugin from './plugins/MultiPassRendererPlugin';
|
|
|
|
import PixelPickingPlugin from './plugins/PixelPickingPlugin';
|
|
|
|
import RegisterStyleAttributePlugin from './plugins/RegisterStyleAttributePlugin';
|
|
|
|
import ShaderUniformPlugin from './plugins/ShaderUniformPlugin';
|
|
|
|
import UpdateStyleAttributePlugin from './plugins/UpdateStyleAttributePlugin';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 校验传入参数配置项的正确性
|
|
|
|
* @see /dev-docs/ConfigSchemaValidation.md
|
|
|
|
*/
|
|
|
|
container
|
|
|
|
.bind<ILayerPlugin>(TYPES.ILayerPlugin)
|
|
|
|
.to(ConfigSchemaValidationPlugin);
|
|
|
|
/**
|
|
|
|
* 获取 Source
|
|
|
|
*/
|
|
|
|
container.bind<ILayerPlugin>(TYPES.ILayerPlugin).to(DataSourcePlugin);
|
|
|
|
/**
|
|
|
|
* 根据 StyleAttribute 创建 VertexAttribute
|
|
|
|
*/
|
|
|
|
container
|
|
|
|
.bind<ILayerPlugin>(TYPES.ILayerPlugin)
|
|
|
|
.to(RegisterStyleAttributePlugin);
|
|
|
|
/**
|
|
|
|
* 根据 Source 创建 Scale
|
|
|
|
*/
|
|
|
|
container.bind<ILayerPlugin>(TYPES.ILayerPlugin).to(FeatureScalePlugin);
|
|
|
|
/**
|
|
|
|
* 使用 Scale 进行数据映射
|
|
|
|
*/
|
|
|
|
container.bind<ILayerPlugin>(TYPES.ILayerPlugin).to(DataMappingPlugin);
|
|
|
|
/**
|
|
|
|
* 负责属性更新
|
|
|
|
*/
|
|
|
|
container.bind<ILayerPlugin>(TYPES.ILayerPlugin).to(UpdateStyleAttributePlugin);
|
|
|
|
/**
|
|
|
|
* Multi Pass 自定义渲染管线
|
|
|
|
*/
|
|
|
|
container.bind<ILayerPlugin>(TYPES.ILayerPlugin).to(MultiPassRendererPlugin);
|
|
|
|
/**
|
|
|
|
* 传入相机坐标系参数
|
|
|
|
*/
|
|
|
|
container.bind<ILayerPlugin>(TYPES.ILayerPlugin).to(ShaderUniformPlugin);
|
2019-11-01 17:15:20 +08:00
|
|
|
/**
|
|
|
|
* 传入光照相关参数
|
|
|
|
*/
|
|
|
|
container.bind<ILayerPlugin>(TYPES.ILayerPlugin).to(LightingPlugin);
|
2019-10-29 14:42:41 +08:00
|
|
|
/**
|
|
|
|
* 负责拾取过程中 Encode 以及 Highlight 阶段及结束后恢复
|
|
|
|
*/
|
|
|
|
container.bind<ILayerPlugin>(TYPES.ILayerPlugin).to(PixelPickingPlugin);
|
|
|
|
|
2019-10-16 10:13:44 +08:00
|
|
|
export {
|
|
|
|
BaseLayer,
|
2019-10-29 17:33:37 +08:00
|
|
|
PointLayer,
|
2019-10-16 10:13:44 +08:00
|
|
|
PolygonLayer,
|
2019-10-29 17:33:37 +08:00
|
|
|
Point3dLayer,
|
2019-10-30 10:07:17 +08:00
|
|
|
PointImageLayer,
|
|
|
|
LineLayer,
|
2019-11-10 21:20:26 +08:00
|
|
|
DashLineLayer,
|
2019-10-30 10:07:17 +08:00
|
|
|
Polygon3DLayer,
|
2019-10-30 11:52:36 +08:00
|
|
|
ImageLayer,
|
2019-10-30 14:53:18 +08:00
|
|
|
ArcLineLayer,
|
2019-10-30 16:38:59 +08:00
|
|
|
Arc2DLineLayer,
|
2019-11-10 21:20:26 +08:00
|
|
|
Arc3DLineLayer,
|
2019-11-01 15:36:20 +08:00
|
|
|
RasterLayer,
|
|
|
|
HeatMapLayer,
|
|
|
|
TextLayer,
|
2019-11-14 11:50:12 +08:00
|
|
|
PointNormalLayer,
|
|
|
|
HeatMapGrid3dLayer,
|
|
|
|
HeatMapHexagonLayer,
|
|
|
|
HeatMapGridLayer,
|
2019-11-16 22:22:13 +08:00
|
|
|
Raster2DLayer,
|
2019-10-24 10:38:11 +08:00
|
|
|
// ImageLayer,
|
|
|
|
// HeatMapLayer,
|
2019-10-16 10:13:44 +08:00
|
|
|
};
|