Created
August 1, 2011 18:26
-
-
Save pmark/1118694 to your computer and use it in GitHub Desktop.
Polylines in 3DAR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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