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

绘制静态图如何添加自定义图标? #13

Open
bingyang519 opened this issue May 30, 2018 · 2 comments
Open

绘制静态图如何添加自定义图标? #13

bingyang519 opened this issue May 30, 2018 · 2 comments

Comments

@bingyang519
Copy link

markersStyle可以使用系统提供的样式,也可以使用自定义图片。
如何使用自定义图片呢?

@bingyang519
Copy link
Author

在高德开放平台也创建工单询问了这个问题
没想到一天后就回复了,
特此致敬 敬业的大佬
以下是来自官方的回复

您好,
非常抱歉给您造成困扰,我们会继续完善文档。您可以如下方式使用
myAmapFun.getStaticmap({
zoom: 10,
size: size,
scale: 2,
markers:"-1,http://ico.ooopic.com/ajax/iconpng/?id=158688.png,0:116.37359,39.92437",
success: function(data){
console.log(data.url)
that.setData({
src: data.url
})
},
fail: function(info){
}
})
感谢您的致信,欢迎持续关注高德开放平台!

@WeirdStar0
Copy link

我想问下自定义图标的大小怎么设置呢?

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