Rarely used but very efficient is the HOME-Link integrated in the Navigation Panel:
<--- in the middle of the 8 arrows you'll fine an additional mark: the HOME-Link
It helps to go back to the HOME settings defined in the respective function
mapview.setHomeMap(mpoint, nZoom);
How to achive this ?
See the example code as below:
var mapview;
function showMap()
{
var baseURL = "http://"+document.location.host+"/mapviewer";
var mapCenterLon = -122.45;
var mapCenterLat = 37.7706;
var mapZoom = 3;
var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
mapview = new MVMapView(document.getElementById("map"), baseURL);
mapview.addBaseMapLayer(new MVBaseMap("mvdemo.demo_map"));
mapview.setCenter(mpoint);
mapview.setZoomLevel(mapZoom);
mapview.setHomeMap(mpoint, 2);
mapview.addNavigationPanel("WEST");
mapview.addCopyRightNote("©2006 powered by oracle(tm)");
mapview.addScaleBar();
addThemeBasedFOI();
mapview.display();
}
Montag, 7. Mai 2007
Abonnieren
Kommentare zum Post (Atom)
Keine Kommentare:
Kommentar veröffentlichen