admin管理员组文章数量:1419223
I have beenn searching a lot about the way to show dynamic text with a marker using google maps api V3. Finally I found a simple solution using the MarkerWithLabel. Full documentation following the link
link
The problem i have now is that i want to change the default icon of the markerwithlabel or if that is not possible just do not show it.
I really would like to know if anyone had the same problem Cose i fail to finf anything related on thje web
thanks
I have beenn searching a lot about the way to show dynamic text with a marker using google maps api V3. Finally I found a simple solution using the MarkerWithLabel. Full documentation following the link
link
The problem i have now is that i want to change the default icon of the markerwithlabel or if that is not possible just do not show it.
I really would like to know if anyone had the same problem Cose i fail to finf anything related on thje web
thanks
Share Improve this question asked Aug 20, 2012 at 19:09 JuanJuan 4292 gold badges6 silver badges20 bronze badges1 Answer
Reset to default 6I think all you have to do is pass the 'icon' parameter to your constructor, like this: MarkerWithLabel extends Marker, it says.
x = new MarkerWithLabel({
icon: 'http://www.mysite./myimage.png'
});
https://developers.google./maps/documentation/javascript/reference#MarkerOptions
本文标签: javascriptChange Default Icon to MarkerWithLabelStack Overflow
版权声明:本文标题:javascript - Change Default Icon to MarkerWithLabel - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745277875a2651284.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论