mirror of https://gitee.com/antv-l7/antv-l7
Merge branch 'master' of https://github.com/antvis/L7
This commit is contained in:
commit
e1660776ef
|
@ -338,7 +338,7 @@ img.onload = function() {
|
|||
const layer = new LineLayer({})
|
||||
.source(geoData)
|
||||
.size(1)
|
||||
.shape('simpleline')
|
||||
.shape('simple')
|
||||
.color('rgb(22, 119, 255)')
|
||||
.style({
|
||||
vertexHeightScale: 2000,
|
||||
|
|
|
@ -29,7 +29,7 @@ export default class LineLayer extends BaseLayer<ILineLayerStyleOptions> {
|
|||
const type = this.getModelType();
|
||||
const defaultConfig = {
|
||||
line: {},
|
||||
simpleline: {},
|
||||
simple: {},
|
||||
wall: {},
|
||||
arc3d: { blend: 'additive' },
|
||||
arc: { blend: 'additive' },
|
||||
|
|
|
@ -12,7 +12,7 @@ export type LineModelType =
|
|||
| 'arc3d'
|
||||
| 'greatcircle'
|
||||
| 'wall'
|
||||
| 'simpleline'
|
||||
| 'simple'
|
||||
| 'line';
|
||||
|
||||
const LineModels: { [key in LineModelType]: any } = {
|
||||
|
@ -22,7 +22,7 @@ const LineModels: { [key in LineModelType]: any } = {
|
|||
greatcircle: GreatCircleModel,
|
||||
wall: LineWallModel,
|
||||
line: LineModel,
|
||||
simpleline: SimpleLineModel,
|
||||
simple: SimpleLineModel,
|
||||
};
|
||||
|
||||
export default LineModels;
|
||||
|
|
|
@ -97,7 +97,7 @@ export default class SimpleLineModel extends BaseModel {
|
|||
public buildModels(): IModel[] {
|
||||
return [
|
||||
this.layer.buildLayerModel({
|
||||
moduleName: 'line',
|
||||
moduleName: 'simpleline',
|
||||
vertexShader: line_vert,
|
||||
fragmentShader: line_frag,
|
||||
triangulation: SimpleLineTriangulation,
|
||||
|
|
|
@ -343,7 +343,7 @@ export default class GridTile extends React.Component {
|
|||
const layer = new LineLayer({})
|
||||
.source(geoData)
|
||||
.size(1)
|
||||
.shape('simpleline')
|
||||
.shape('simple')
|
||||
.color('rgb(22, 119, 255)')
|
||||
.style({
|
||||
vertexHeightScale: 2000,
|
||||
|
|
|
@ -295,7 +295,7 @@ export default class GridTile2 extends React.Component {
|
|||
const layer = new LineLayer({})
|
||||
.source(geoData)
|
||||
.size(1)
|
||||
.shape('simpleline')
|
||||
.shape('simple')
|
||||
.color('rgb(22, 119, 255)')
|
||||
.style({
|
||||
vertexHeightScale: 2000,
|
||||
|
|
Loading…
Reference in New Issue