Event to capture veshape infobox mouseout event

Answered Event to capture veshape infobox mouseout event

  • Thursday, June 21, 2012 12:34 PM
     
     

    Hi,

    I am working on bing map v6.3 . I want to capture mouseout event for infobox of veshape. Currently I am using mouseout event of vemap but it works for pushpin not for its infobox.

All Replies

  • Thursday, June 21, 2012 2:50 PM
    Owner
     
     Answered
    If this is a new application I recommend using Bing Maps v7 as the Bing Maps v6.3 API is old and hasn't been updated in over 3 years. As for your event issue, there is no built in event for it. You can look at using a custom infobox and adding a mouseout event to the base div.

    http://rbrundritt.wordpress.com

  • Wednesday, June 27, 2012 6:11 AM
     
     

    Hi,

    Thanks for reply. I also want to use v7 but one thing I can't make in it

    pushPin.SetCustomIcon("<div  style='background-color:" + _driverColor[i] + "'><img src='home_24.png' width='16px' height='16px' /></div>");

    I am using image for pins with different background color getting from array. I didn't find any way to do this in v7.

  • Wednesday, June 27, 2012 9:46 AM
    Owner
     
     
    You can use the infobox class and pass in your HTML cutom pushpin as the HTML content of the Infobox. It might sound a bit odd but in reality it creates basically the same thing.

    http://rbrundritt.wordpress.com

  • Wednesday, June 27, 2012 9:59 AM
     
     

    Thanks,

    But I didn't understand how to use infobox class. If possible show me code.

  • Wednesday, June 27, 2012 11:09 AM
    Owner
     
     
    A working example can be found in this post: http://social.msdn.microsoft.com/Forums/en-US/bingmapsajax/thread/78a07f38-01c7-4964-938b-4509cf0879af

    http://rbrundritt.wordpress.com

  • Thursday, June 28, 2012 6:10 AM
     
     
    I go through the post, infobox is used instead of pushpin to show pin in map but I have to made them draggable also. Draggable property can only be set in pushpin class.