Skip to content

Instantly share code, notes, and snippets.

@mousebird
Created November 3, 2014 17:38
Show Gist options
  • Save mousebird/936765fb9d6ae57a765e to your computer and use it in GitHub Desktop.
Save mousebird/936765fb9d6ae57a765e to your computer and use it in GitHub Desktop.
// Test a ground overlay-like thing
{
UIImage *imgImage = [[UIImage alloc]
initWithData:[NSData dataWithContentsOfURL:
[NSURL URLWithString:@"http://radar.weather.gov/ridge/RadarImg/N0Z/MUX_N0Z_0.gif"]]];
MaplySticker *mstick = [[MaplySticker alloc] init];
mstick.image = imgImage;
mstick.ll = MaplyCoordinateMakeWithDegrees(-126.253365, 33.147724);
mstick.ur = MaplyCoordinateMakeWithDegrees(-117.526093, 41.147724);
[theViewC addStickers:@[mstick] desc:nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment