none
Maps v7: HTML/CSS in pushpin RRS feed

  • Question

  • I’m upgrading from Bing Maps v6.3 to v7.

    How can I embed HTML into the pushpin?

    In v6 I would pass HTML to SetCustomIcon.  What is the v7 equivalent?  I want to use HTML as a container so CSS will display the pin image from an image sprite, not var pushpinOptions = { icon: './IMG/pushpin.png' };

    -=Dan=-

    • Moved by Ricky_Brundritt Saturday, March 10, 2012 1:36 PM (From:Bing Maps: Map Control and Web services Development)
    Monday, February 20, 2012 9:11 PM

Answers

  • You can set the typeName property of the PushpinOptions assigned to the pushpin. (http://msdn.microsoft.com/en-us/library/gg427629.aspx)

    This will assign a CSS class that you can attach the image sprite to.


    twitter: @alastaira blog: http://alastaira.wordpress.com/

    • Marked as answer by danactive Monday, February 20, 2012 10:39 PM
    Monday, February 20, 2012 9:30 PM
    Moderator