title: MKPolyline only plotting points
body: <p>I am attempting to draw multiple MKPolylines for corresponding Arrays of lat/lng points.  However, when I addOverlay to my mapView the points are plotted but are not connected.  </p>
  
  <pre><code>-(void)addAllRoutes:(NSData *)routedata{
  
  NSDictionary *json = [NSJSONSerialization JSONObjectWithData:routedata options:0 error:NULL];
  
  
  
  for (NSDictionary *annnotationobject in json) {
  
      NSArray *polyarray = [[NSArray alloc] initWithArray:[annnotationobject objectForKey:@"polyline"]];
      NSDictionary *polyDict = [[NSDictionary alloc] initWithDictionary:[polyarray objectAtIndex:0]];
      //NSLog(@"keys = %@",[polyDict allKeys]);
      //NSLog(@"values = %@",[polyDict allValues]);
  
      NSInteger pointsCount = polyarray.count;
  
      CLLocationCoordinate2D pointsToUse[pointsCount];
  
      for(int i = 0; i &lt; pointsCount; i++){
          NSString *lat = polyDict[@"lat"];
          NSString *lng = polyDict[@"lng"];
          CLLocationDegrees latitude = [lat doubleValue];
          CLLocationDegrees longitude = [lng doubleValue];
          pointsToUse[i] = CLLocationCoordinate2DMake(latitude, longitude);
  
  
      }
  
  
      MKPolyline *myPolyline = [MKPolyline polylineWithCoordinates:pointsToUse count:pointsCount];
  
      [self.mapView addOverlay:myPolyline];
  
  
  }
  
  }
  </code></pre>
  
  <p>Route data comes via json text as:</p>
  
  <pre><code>    "polyline": [
          {
              "lat": 43.02038, 
              "lng": -87.897706
          }, 
          {
              "lat": 43.008363, 
              "lng": -87.892578
          }, 
          {
              "lat": 43.006454, 
              "lng": -87.891977
          }, 
          {
              "lat": 43.005188, 
              "lng": -87.891827
          }, 
          {
              "lat": 43.004029, 
              "lng": -87.891891
          }, 
          {
              "lat": 43.00302, 
              "lng": -87.89202
          }, 
          {
              "lat": 43.00184, 
              "lng": -87.892106
          }
      ], 
  </code></pre>
  
  <p>Every point plots exactly as expected, it's just that no line is drawn to connect them.  Having a difficult time finding others with a similar situation.  All help/advice is welcome.  Can provide additional code if necessary.  </p>