Community of VE/MapPoint Users and Developers
This is a discussion on Layer switching in Virtual Earth Apps within the Virtual Earth Blogs forums, part of the Blogs category; A common question from developers just getting started with the Virtual Earth platform is how to control turning multiple layers ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Layer switching in Virtual Earth Apps A common question from developers just getting started with the Virtual Earth platform is how to control turning multiple layers on and off. I received this question again yesterday so I put together this simple app as an example. The sample starts by loading three layers from existing Collections. These layers can be just as easily loaded from GeoRSS feeds or created programmatically on the fly. Loading a layer in VE is this simple: var l = new VEShapeLayer();***** Each layer loads asynchronously and fires the specified callback when it completes. fnLayerLoaded in this case. Your call back is passed the corresponding VEShapeLayer for you to do whatever post processing you want to. in my case I formatted an HTML list of the data and set a custom icon for each layer. The list control above the map is used to switch layers. for a reference of all of the layer operations checkout the VE interactive SDK. Technorati tags: Virtual Earth, developer Currently Threshold Apprentice by Black Francis is playing |
![]() |
| Tags |
| apps, layer, switching, virtual earth |
| ||||
| Posted By | For | Type | Date | |
| virtual-earth: Blogs, Photos, Videos and more on Technorati | This thread | Refback | 09-22-2007 03:56 PM | |
| Virtual Earth: Blogs, Photos, Videos and more on Technorati | This thread | Refback | 09-22-2007 02:07 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Virtual Earth @ WPC | VirtualEarth MSDN Blog | Virtual Earth Blogs | 0 | 09-15-2007 02:17 PM |
| Virtual Earth Survey | VirtualEarth MSDN Blog | Virtual Earth Blogs | 0 | 09-15-2007 02:17 PM |
| weather.com Using Virtual Earth | Eric Frost | MapPoint Web Service and Virtual Earth | 1 | 04-01-2007 07:39 AM |
| MSN Virtual Earth. | Eric Frost | News and Announcements | 0 | 11-03-2006 11:27 AM |
| Virtual Earth 4 | Eric Frost | MapPoint Web Service and Virtual Earth | 0 | 10-31-2006 10:17 PM |
Ski Holiday Packages
Choose from a selection of ski holiday packages from the top travel brands. Holiday Hypermarket makes it easy to search and browse great value ski holidays.
Spain Weather
Check Spain Weather before you travel. We provide information on Spain including weather, flights and accommodation.
Italy Holiday
An Italy Holiday is full of interesting stuff for the casual tourist and even more for the educated visitor. Check out the latest great deals at dealchecker.co.uk.
Mauritius Holidays
Mauritis holidays are a sun drenched, sense tingling experience of a lifetime. You will find bargain deals on many holidays with us!
Canaries
Find out all about the Canaries when you check out the ulookubook.com travel guides. Not only can you get a great holiday deal but you can find out useful information about potential holiday destinations.
Price Comparisons
Search and compare millions of holidays, flights and hotels etc. At Travel.co.uk, price comparisons are easy.
Cheap Holidays to Sharm el Sheikh
Break away to Northern Africa. Find cheap holidays to Sharm el Sheikh at On The Beach.