Skip to content

Instantly share code, notes, and snippets.

@pmark
Created August 1, 2011 18:26
Show Gist options
  • Save pmark/1118694 to your computer and use it in GitHub Desktop.
Save pmark/1118694 to your computer and use it in GitHub Desktop.
Polylines in 3DAR
CLLocation *polylineLocation = [[[CLLocation alloc] initWithLatitude:45.5 longitude:-122.6] autorelease];
NSMutableArray *worldCoords = [NSMutableArray array];
Coord3D coord;
coord.x = 0; // East
coord.y = 100; // North
coord.z = 0; // Up
WorldCoordinate *wc = [[[WorldCoordinate alloc] initWithCoord:coord] autorelease];
[worldCoords addObject:wc];
// Add more coordinates to the line here.
PolylinePoint *polyline = [[[PolylinePoint alloc] initWithWorldCoordinates:worldCoords
atLocation:polylineLocation
properties:nil] autorelease];
[mapView.sm3dar addPointOfInterest:polyline];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment