function panmap(direzione)
{
	var map =	window.MyMap;
  var corX = map.getLon();
  var corY = map.getLat();
	var Wth = map.MapWidth;
	var Hth = map.MapHeight;
  var Unt = map.MapUnits
  switch (direzione) {
    case "est": {
		  var X = corX + (Wth * 0.20);
		  var Y = corY
      map.zoomWidth(Y,X,Wth,Unt);
		  map.refresh();
      break;
    }
    case "nordest": {
		  var X = corX + (Wth * 0.20);
		  var Y = corY + (Hth * 0.20);
      map.zoomWidth(Y,X,Wth,Unt);
		  map.refresh();
      break;
    }
    case "nord": {
		  var X = corX;
		  var Y = corY + (Hth * 0.20);
      map.zoomWidth(Y,X,Wth,Unt);
		  map.refresh();
      break;
    }
    case "nordovest": {
		  var X = corX - (Wth * 0.20);
		  var Y = corY + (Hth * 0.20);
      map.zoomWidth(Y,X,Wth,Unt);
		  map.refresh();
      break;
    }
    case "ovest": {
		  var X = corX - (Wth * 0.20);
		  var Y = corY;
      map.zoomWidth(Y,X,Wth,Unt);
		  map.refresh();
      break;
    }
    case "sudovest": {
		  var X = corX - (Wth * 0.20);
		  var Y = corY - (Hth * 0.20);
      map.zoomWidth(Y,X,Wth,Unt);
		  map.refresh();
      break;
    }
    case "sud": {
		  var X = corX;
		  var Y = corY - (Hth * 0.20);
      map.zoomWidth(Y,X,Wth,Unt);
		  map.refresh();
      break;
    }
    case "sudest": {
		  var X = corX + (Wth * 0.20);
		  var Y = corY - (Hth * 0.20);
      map.zoomWidth(Y,X,Wth,Unt);
		  map.refresh();
      break;
    }

   }          
}

