//
//  WOMapPanelViewController.h
//  EAMNext
//
//  Created by Divya Sivakumar on 8/2/17.
//
//

#import "BasePanelViewController.h"
#import "R5EVENTS.h"
#import "R5OBJECTS.h"
#import <MapKit/MapKit.h>
#import "EAMAppDelegate.h"

@class R5EVENTS;


@interface MapPanelViewController : BasePanelViewController <MKMapViewDelegate,UITableViewDataSource, UITableViewDelegate>


@property (nonatomic, weak  )               id                      delegate;
@property (nonatomic, unsafe_unretained)    EAMAppDelegate          *appDelegate;
@property (nonatomic, strong)               R5EVENTS                *workOrder;
@property (nonatomic, strong)               R5OBJECTS               *equipment;
@property (nonatomic, strong)               NSString                *workOrderNumber;
@property (nonatomic, strong)               NSString                *equipmentNumber;
@property (nonatomic, strong)               NSString                *equipmentOrg;
@property (nonatomic, strong)               NSString                *department;

@property (nonatomic, strong) NSMutableArray                    *dataSource;
@property (nonatomic        ) AnnotationType                    annotationType;
@property (nonatomic        ) NSInteger                         selectedIndex;

- (void)loadAnnotations;
- (void)refresh;
- (void)selectAnnotation:(NSUInteger )index;
@end
