First make sure you add your events in the order you want them to fire (layer events before map events). Then, in the event arg there is a preventDefault
function. Simply call this function in your layer event handler. For example:
function layerClickedEventHandler(eventArg) {
//Don't allow the event to bubble up to the next attached item.
eventArg.preventDefault();
}