correct a bug in event listening for the map
update and correct some bug for untegration with updated fm-basic-wms