Added hooks on map initialization and update in order to allow custom processing (afterInit and afterUpdate)