Check if vertices and edges are on the map