added custom event dispatching for Map
built with event dispatching feature