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 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

本文标签: javascriptChange Default Icon to MarkerWithLabelStack Overflow