added querying of map contents; temporary code - the map contents should be pushed to the client