public int removeShapesNotWithinMap ( GoogleMap map ) { int count = 0 ; BoundingBox boundingBox = MapUtils . getBoundingBox ( map ) ; for ( String database : databases . keySet ( ) ) { count += removeShapesNotWithinMap ( boundingBox , database ) ; } return count ; }
Remove all map shapes that are not visible in the map