implemented drag mode for the map