add legend to map
make selecting types work
enable redisplaying map