modified emitter mapTool to be created dinamilcally and reset to panTool to avoid reactivaring custom mapTool. related to #490