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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745277875a4620139.html
评论列表(0条)