diff --git a/Classes/NVPolylineAnnotationView.m b/Classes/NVPolylineAnnotationView.m index 83e5d4b..b159f57 100644 --- a/Classes/NVPolylineAnnotationView.m +++ b/Classes/NVPolylineAnnotationView.m @@ -98,6 +98,10 @@ -(void) regionChanged { NVPolylineAnnotation* annotation = (NVPolylineAnnotation*)self.annotation; CGPoint minpt, maxpt; + minpt.x = CGFLOAT_MIN; + minpt.y = CGFLOAT_MIN; + maxpt.x = CGFLOAT_MAX; + maxpt.y = CGFLOAT_MAX; for (int i = 0; i < annotation.points.count; i++) { CLLocation* location = [annotation.points objectAtIndex:i];