/******************************************************************************
*******      NAVIGAZIONE DELLA MAPPA	    ***********************************
*******************************************************************************
Simone Gadenz
*******************************************************************************
Questo file raccoglie le funzioni che servono per le operazioni di navigazione
sulla mappa
******************************************************************************/
/*
* date due coordinate in gradi le trasforma in mercatoe e ricentra al mappa
*/		
function zoom2Point(lon,lat,zl){
	scroll(0,0);
	var point = new OpenLayers.LonLat(lon, lat);
	var proj = new OpenLayers.Projection("EPSG:4326");
	point.transform(proj, map.getProjectionObject());
	map.setCenter(point, zl);
}

/* 
* imposta il layer di base
*/
function setBaseMap(mapLayer){
	map.setBaseLayer(mapLayer);
}