var themebasedfoi = new MVThemeBasedFOI('themebasedfoi1', 'mvdemo.customers');
To display the data from a GeoRSS accessible at the url 'http://foo.com/georss.xml',
you will create the theme-based FOI layer like this:
var georss="mvdemo.__georss__http://foo.com/georss.xml";
var themebasedfoi = new MVThemeBasedFOI('themebasedfoi1',georss);
That's all you need to do to display the geographic data or items in the
GeoRSS feed. Note that typically MapViewer will render the geo-features in a
GeoRSS feed using the default (gray) style. If you want to use a different style
simply supply a MapViewer style name and set it on the theme-based FOI layer
through MVThemeBasedFOI.setRenderingStyle().
For more information about GeoRSS, please check the GeoRSS web site, http://www.georss.org. MapViewer supports both Atom and RSS 1 or 2 feeds. For the detailed information regarding MapViewer's support of GeoRSS, please check the MapViewer User's Guide.
Here is the sample GeoRSS xml file that is used for this demo.
var mapview;
function on_load_mapview()
{
var baseURL = "http://"+document.location.host+"/mapviewer";
var mapCenterLon = -122.45;
var mapCenterLat = 37.7706;
var mapZoom = 4;
var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
mapview = new MVMapView(document.getElementById("map"), baseURL);
mapview.addMapTileLayer(new MVMapTileLayer("mvdemo.demo_map"));
mapview.setCenter(mpoint);
mapview.setZoomLevel(mapZoom);
var georss="mvdemo.__georss__"+baseURL+"/fsmc/tutorial/samples/georss.xml";
var themebasedfoi = new MVThemeBasedFOI('themebasedfoi1',georss);
themebasedfoi.setBringToTopOnMouseOver(true);
mapview.addThemeBasedFOI(themebasedfoi);
mapview.display();
}