javascript - Change Default Icon to MarkerWithLabel - Stack Overflow

I have beenn searching a lot about the way to show dynamic text with a marker using google maps api V3.

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 badges
Add a ment  | 

1 Answer 1

Reset to default 6

I 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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745277875a4620139.html

相关推荐

  • javascript - Change Default Icon to MarkerWithLabel - Stack Overflow

    I have beenn searching a lot about the way to show dynamic text with a marker using google maps api V3.

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信