Description: a custom map.
#import <MapCharting/MapCharting.h> @interface CustomMap : MapChart2D @end
#import "CustomMap.h"
@implementation CustomMap
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
}
return self;
}
// Handle timeline integer index change event
- (void) mapTimeAxis: (MapTimeAxis *)mapTimeAxis setIndex: (int) idx {
[super mapTimeAxis:mapTimeAxis setIndex:idx];
NSLog(@"%@ %d",@"Timeline integer index: ", idx);
}
// Handle timeline real index change event
- (void) mapTimeAxis: (MapTimeAxis *)mapTimeAxis setDoubleIndex: (double) idx{
[super mapTimeAxis:mapTimeAxis setDoubleIndex:idx];
NSLog(@"%@ %f",@"Timeline real index: ", idx);
}
// Handle timeline playback start event
- (void) mapTimeAxisPlaybackStarted:(MapTimeAxis *)mapTimeAxis{
[super mapTimeAxisPlaybackStarted:mapTimeAxis];
NSLog(@"Timeline playback is started");
}
// Handle timeline playback stop event
- (void) mapTimeAxisPlaybackStopped:(MapTimeAxis *)mapTimeAxis{
[super mapTimeAxisPlaybackStopped:mapTimeAxis];
NSLog(@"Timeline playback is stopped");
}
@end
See also: