Created
July 5, 2011 14:38
-
-
Save pmark/1064951 to your computer and use it in GitHub Desktop.
How to integrate 3DAR without using SM3DARMapView.
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
- (void) viewDidLoad // or awakeFromNib | |
{ | |
// Retain a reference to sm3dar. | |
self.sm3dar = [[[SM3DARController alloc] initWithDelegate:self] autorelease]; | |
sm3dar.map = yourArcGisMapOrSomeOtherMapView; // Optional. | |
UIView *containerViewFor3dar = self.view; // Common usage. | |
[containerViewFor3dar addSubview:sm3dar.view] | |
} | |
- (void) sm3darLoadPoints:(SM3DARController *)sm3dar | |
{ | |
// This is called after 3DAR loads. | |
// Initialize one of more points to be added to the scene. | |
// SM3DARPointOfInterest *poi; | |
// CLLocation *poi; | |
[sm3dar addPoint:poi] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment