Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PolygonLayer shape(type) 设置问题! #29

Closed
amve opened this issue Sep 9, 2019 · 2 comments
Closed

PolygonLayer shape(type) 设置问题! #29

amve opened this issue Sep 9, 2019 · 2 comments

Comments

@amve
Copy link

amve commented Sep 9, 2019

  • L7 Version: 1.3.2
  • Platform:Browser Chrome @76.0.3809.132

PolygonLayer 的shape 方法代码 中this.set('shape',type),把shape方法改写

shape(type) {
this.shape = type;
this.set('shape', type);
this.set('shapeType', 'polygon');
return this;
}

导致此方法只能执行一次,并且只能传入line,fill,extrude 三种shape,填写其他field映射都会导致draw时,getRender方法报错。

@lzxue
Copy link
Contributor

lzxue commented Sep 9, 2019

目前polygon的shape不支持数据映射,只支持line,fill,extrude 常量设置

@lzxue lzxue closed this as completed Sep 9, 2019
@amve
Copy link
Author

amve commented Sep 9, 2019

多谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants