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

关于官方文档 PointLayer的 示例代码fillImage rotate不生效 BUG #1854

Closed
MacJayLee opened this issue Sep 12, 2023 · 3 comments
Closed
Assignees
Labels
good first issue Good for newcomers

Comments

@MacJayLee
Copy link

MacJayLee commented Sep 12, 2023

这个是官方文档的演示界面 https://l7.antv.antgroup.com/zh/examples/point/image#monsoon

在这个示例代码中 rotate方法不起任何作用 季风的箭头方向永远不变

原因就在于 PointLayer初始化的时候 必须要先声明 largeLayer:'fillImage '

而并非案例中在style方法中去声明 largeLayer:'fillImage '

正确代码sandbox如下

https://codesandbox.io/s/practical-mclean-9hkqcy?file=/index.js

这个文档我试了半天才发现是这个问题 在文档的上方关于fillImage作了专门的陈述

1694492449752

而这个这个是对的

希望和下面的rotate方法在线示例代码结合起来 不然容易误导新手

@github-actions
Copy link
Contributor

hi @MacJayLee, welcome!

@lzxue
Copy link
Contributor

lzxue commented Sep 12, 2023

感谢反馈,本周 rotate 方法,配置和demo 会重新升级,能力会更完善。

@lzxue
Copy link
Contributor

lzxue commented Oct 9, 2023

@lzxue lzxue closed this as completed Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Development

No branches or pull requests

2 participants