Added a function to check for visible markers on the map.