use the map in the moveend event