updated to only calculate quadtree for points that are within the map bounds