Moved map event dispatch to function to satisfy jshint

Used similar naming convention for the dispatch function as what was
set up for marker event dispatching.