Virtual Earth API: Using GeoRSS Layers

One of the powerful features that was introduced in the Virtual Earth APIs in version 3.0 is the GeoRSS Layer.  The GeoRSS Layer allows you to easily add a set of points and information to the map from a standard GeoRSS XML file using the W3C Basic Geo (WGS84 lat/long) Vocabulary or the GeoRSS Simple Syntax

For example, here's a link to a GeoRSS file showing the tracking information of Hurricane Ivan from 2004:

Using the Layer API with a GeoRSS file, you can easily create a mashup with a few lines of code presenting this information.  This can be done with the VELayerSpecification object and the AddLayer call on the map.  The VELayerSpecification defines the layer and the AddLayer call adds the layer to the map.  Once you have created a map and loaded it, the following code shows how to add a GeoRSS layer to the map:

var layerSpec = new VELayerSpecification();
layerSpec.Type = VELayerType.GeoRSS;
layerSpec.ID = "Ivan";
layerSpec.IconUrl = "";
layerSpec.LayerSource =  "";
layerSpec.Method = "get";


The mashup when created will show the items as a series of points.  When hovering the mouse over the points, a pop-up will appear with the information related to that point:

Click Here to see a live demo of this mashup.

For more information regarding the Virtual Earth API and using GeoRSS Layers, see the Virtual Earth Interactive SDK.

Comments (4)

  1. This is pretty cool. As you know ArcWeb Explorer now supports the use of GeoRSS with the Javascript API.

  2. Microsoft Virtual Earth API 3.0中新增的一项强大的功能使用GeoRSS,GeoRSS提供了一种地理位置搜索与聚合的方案,并且可以用于地理分析,例如在指定地点10公里范围内,所有可能受地震影响的地物的信息,在自己出行道路中出现交通事故的位置点,等等。只要RSS包含了地理位置信息,就可以将应用进行扩展。GeoRSS层可以很容易的使用基于WGS84

  3. Keith Kinnan says:

    With the release of the v5 Virtual Earth API, loading GeoRSS layers has been improved. See this post:

  4. Keith Kinnan says:

    I updated the sample code to use the Virtual Earth Map Control 6.2 API.

Skip to main content