Skip to content

Instantly share code, notes, and snippets.

@maplinkapi
Last active August 4, 2017 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maplinkapi/5215078 to your computer and use it in GitHub Desktop.
Save maplinkapi/5215078 to your computer and use it in GitHub Desktop.
NSString* pinImagePath = [[NSBundle mainBundle] pathForResource:@"pin" ofType:@"png"];
UIImage *pinImage = [[UIImage alloc] initWithContentsOfFile:pinImagePath];
MLMapPoint *mapPoint = [[[MLMapPoint alloc] initWithLatitude:-23.6390300 andLongitude:-46.698603] autorelease];
MLPin *pin = [[MLPin alloc] initWithImage:pinImage andPoint:mapPoint];
[mapTemplate addPin:pin];
[pin release];
[pinImage release];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment