Use layerBounds if provided