Community of VE/MapPoint Users and Developers
This is a discussion on Virtual Earth API: Adding KML or GeoRSS Layers to the Map within the Virtual Earth Blogs forums, part of the Blogs category; One of the new features of the Virtual Earth v6 Map Control API is the ability to import KML layers ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Virtual Earth API: Adding KML or GeoRSS Layers to the Map One of the new features of the Virtual Earth v6 Map Control API is the ability to import KML layers on the map. Previous versions of the API allowed you to import GeoRSS using client-side XML parsing. However, one of the restrictions was that the GeoRSS file had to be on the same domain as the application or the browser would bring up a security warning unless the feed was from a trusted site in the client browser. For v6, we have improved this by added a new VEDataType.ImportXML option to the ImportShapeLayerData call on VEMap. This new call uses the same service from Live Search Maps which allows users to import KML, GeoRSS, or GPX into user collections. In the Virtual Earth API, it will import the XML into a shape layer in your application. It also allows you to load these data files from different domains without causing a browser security warning. Here are the steps for importing a KML, GeoRSS, or GPX file into your Virtual Earth application:
2. Create a shape source specification with type VEDataType.ImportXML, the url to the XML file, and a reference to the shape layer:
3. Import the data into shape layer by calling ImportShapeLayerData on the map with the specification:
Here's a link to a simple example which imports a KML file from the Discovery Channel that shows different national parks around the United States:
Note: you can also import XML files directly into Live Search Maps by opening a collection and then clicking on Import and entering the url. You can also, use the following url syntax directly:
For example: More... |
![]() |
| Tags |
| adding, api, georss, kml, layers, map, virtual earth |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BRIGHTi GeoFeeder for converting Geodata to GeoRSS | VE Team | Virtual Earth Blogs | 1 | 08-19-2008 02:07 PM |
| Mashing KML and GeoRSS in 3D on the Web | VE Team | Virtual Earth Blogs | 0 | 10-26-2007 01:13 PM |
| Virtual Earth News from GEOINT 2007: Virtual Earth Appliance | VE For Government | Virtual Earth Blogs | 0 | 10-24-2007 12:10 PM |
| GeoFeeder: Convert Your Vector Data to GeoRSS and Import into Virtual Earth | VE For Government | Virtual Earth Blogs | 0 | 10-17-2007 09:41 AM |
| Adding other layers to mappoint street maps | Anonymous | MapPoint Web Service and Virtual Earth | 0 | 05-12-2005 07:42 PM |
Ski Resorts
Choose from the comprehensive range of ski resorts at Holiday Hypermarket. Search for ski holidays online at Holiday Hypermarket to find ski holidays that are right for you.
Flights to Italy
Find cheap flights to Italy on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Italy.
Cape Town Cheap Flights
Thinking about visiting Cape Town. Cheap flights are hard to find unless you visit dealchecker.co.uk. We'll shop around so you don't have to.
Holidays in Cyprus
Holidays in Cyprus are enriched by the abundance of churches, ruins and natural wonders. Book a holiday with us today!
Morocco
Gain insight on your holiday destination with the ULookUBook travel guides. Find out about Morocco and its customs online. Make an informed decision when you make a booking.
Compare holiday prices
Compare holiday prices online where you can see all the possibilities at Travel.co.uk
Cheap Lanzarote Holidays
The Canary Islands beckons you to come! View information on cheap Lanzarote holidays at On The Beach!