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

marker在setSymbol的markerFile属性时,地图进行animateTo事件,会导致marker图片不显示 #1129

Closed
Wuli-Zhang opened this issue May 25, 2020 · 0 comments
Labels

Comments

@Wuli-Zhang
Copy link

maptalks's version and what browser you use?

Issue description
----marker在setSymbol的markerFile属性时,地图进行animateTo事件,会导致marker图片不显示,控制台warning“no img found for ('引用图片地址') ”

伪代码:
point.on('click', (e) => {
e.target.setSymbol({
...default,
markerFile: "./assets/2.png"
});
// setTimeout(() => {
map.animateTo({
zoom: 18,
center: e.target._coordinates
}, {
duration: 800,
easing: "out"
});
})

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

No branches or pull requests

2 participants