none
How to add the layers in bing map version 7.0 as we add by using the VEShapLayer in version 6.3 RRS feed

  • Question

  • I enable to find the solution how to add the layers in bing map version 7.0 like we can add in bing map version 6.3 by using the VEShapLayer ForEx:- We want to add the schools layer in the map version 7.0

    And also how can i add the control on the bing map version 7.0 Foex:- Simple Div control i want to add on the map to display some information

    Can anyone provide the solution for this.
    • Moved by Ricky_Brundritt Friday, March 9, 2012 5:39 PM (From:Bing Maps: Map Control and Web services Development)
    Tuesday, May 10, 2011 5:54 AM

Answers

  • The EntityCollection() class in v7 can contain Pushpins, Polylines, and Polygons, much like the old VEShapeLayer class. Every item in a collection can then be acted on (e.g. shown, hidden, removed) as a group. See http://msdn.microsoft.com/en-us/library/gg427616.aspx

    As for adding a control, just create a <div> element on the page and use CSS to position it on top of the map.


    twitter: @alastaira blog: http://alastaira.wordpress.com/
    Tuesday, May 10, 2011 6:51 AM
    Moderator

All replies

  • The EntityCollection() class in v7 can contain Pushpins, Polylines, and Polygons, much like the old VEShapeLayer class. Every item in a collection can then be acted on (e.g. shown, hidden, removed) as a group. See http://msdn.microsoft.com/en-us/library/gg427616.aspx

    As for adding a control, just create a <div> element on the page and use CSS to position it on top of the map.


    twitter: @alastaira blog: http://alastaira.wordpress.com/
    Tuesday, May 10, 2011 6:51 AM
    Moderator
  • Can anyone provide me the solution how to add the div control in ajax bing map version 7.0 as we did by using AddControl() method in ajax bing map version 6.3
    Friday, May 20, 2011 5:20 AM
  • That's a different question - you should really start a new thread. However, the answer is that there's no equivalent method to AddControl() in v7 since, to be honest, it didn't really do anything in v6.x anyway....

    Just add a <div> control to the DOM as normal and use CSS to position it on top of the map div.


    twitter: @alastaira blog: http://alastaira.wordpress.com/
    Friday, May 20, 2011 6:22 AM
    Moderator