Saturday, April 07, 2012 10:40 PM
I want to display POIs with their names with bing maps V7.
For example, I want to display an icon with on its bottom a text like "Champs Elysees, Paris"
When using PushpinOptions.text, the text is clipped to the icon size.
One way to fix this would be to use a big transparent image, so that the text is not clipped, but doing this the text is misplaced (centered on the transparent image)
I have also tried to use PushPinOptions.typeName to set a css class name on my pushpin, then using jquery replace the pushpins html content with my own content (just a text). But it does not work very well in my case, because when this jquery method is called it applies only on the pushpins displayed on the screen! It does not apply to pushpins appearing after a scroll, for example.
So... Is there a trick to display a long (or any size) text/label in bing map V7?
Thanks in advance!
Monday, April 09, 2012 1:03 PMOwnerWhat's wrong with this approach: http://rbrundritt.wordpress.com/2012/03/31/label-pushpins-in-bing-maps-v7/
- Marked As Answer by Patrick Viroulet Wednesday, April 11, 2012 8:41 PM
Wednesday, April 11, 2012 8:41 PM
Thanks! It just works very well!