generalize map and mapWidget for network map