Skip to content

Instantly share code, notes, and snippets.

@pmark
Created July 5, 2011 14:38
Show Gist options
  • Save pmark/1064951 to your computer and use it in GitHub Desktop.
Save pmark/1064951 to your computer and use it in GitHub Desktop.
How to integrate 3DAR without using SM3DARMapView.
- (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