
/**
 * FUNZIONE PER LA GESTIONE DELLA FUNZIONALITA' DI IDENTIFY
 */
toolHandlers.identify = new Object();
toolHandlers.identify.down  = toolIdentifyDown;
toolHandlers.identify.up    = toolIdentifyUp;
toolHandlers.identify.move  = toolMoveCaptureMousePos;
toolHandlers.identify.start = toolIdentifyStart;
toolHandlers.identify.stop  = toolIdentifyStop;

// identify e' anche immediate op se chiamato con where e non envelope
toolHandlers.identify.doop  = toolImmediateActionDoOp_NoWait;


toolDescrizioni["identify"]="Anagrafica";

// Usa il parametro op per tener traccia del layer attivo
function toolIdentifyStart(idObj, layerId) {
  toolLongActionStart(idObj, layerId);
  //alert("toolIdentifyStart("+idObj+","+layerId+")");
  document.processa.activelayerid.value = layerId;
}

function toolIdentifyStop(idObj) {
  var layerId = document.processa.activelayerid.value;
  //alert(layerId);
  toolLongActionStop(idObj, layerId);
  //alert("toolIdentifyStop("+idObj+","+layerId+")");
}

function toolIdentifyDown(evento) {
  window.status = "toolIdentifyDown";
  if (toolButtaEvento) {
//    toolButtaEvento = false;
    return false;
  } else {
    mapStartZoomBox(evento);
    return false;
  }
}


function toolIdentifyUp(evento) {
  //window.status = "toolIdentifyUp";

  if (toolButtaEvento) {
    toolButtaEvento = false;
    return false;
  } else {
    mapStopZoomBoxNoLoad(evento);
    map_BuildPointSmallEnvelope(evento);
    toolLoad();
    return false;
  }
}


