Fixed viewport for cluster sample and fixed extentToBounds coordinate issue