Local map: the obtained bounding box wasn't exactly accurate, getWorldBoundingBox seems to solve this.