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 themebasedfoi = new MVThemeBasedFOI('themebasedfoi1','mvdemo.customers');
themebasedfoi.setBringToTopOnMouseOver(true);
mapview.addThemeBasedFOI(themebasedfoi);
mapview.display();
}
function removeThemeBasedFOI()
{
var themebasedfoiName = document.getElementById('themebasedfoiName').value;
var themebasedfoi = mapview.getThemeBasedFOI (themebasedfoiName);
mapview.removeThemeBasedFOI(themebasedfoi);
}
This is how the