37 lines
931 B
Objective-C
37 lines
931 B
Objective-C
//
|
|
// AIRMapLocalTile.h
|
|
// AirMaps
|
|
//
|
|
// Created by Peter Zavadsky on 01/12/2017.
|
|
// Copyright © 2017 Christopher. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <MapKit/MapKit.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import <React/RCTComponent.h>
|
|
#import <React/RCTView.h>
|
|
#import "AIRMapCoordinate.h"
|
|
#import "AIRMap.h"
|
|
#import "RCTConvert+AirMap.h"
|
|
|
|
@interface AIRMapLocalTile : MKAnnotationView <MKOverlay>
|
|
|
|
@property (nonatomic, weak) AIRMap *map;
|
|
|
|
@property (nonatomic, strong) MKTileOverlay *tileOverlay;
|
|
@property (nonatomic, strong) MKTileOverlayRenderer *renderer;
|
|
|
|
@property (nonatomic, copy) NSString *pathTemplate;
|
|
@property (nonatomic, assign) CGFloat tileSize;
|
|
|
|
#pragma mark MKOverlay protocol
|
|
|
|
@property(nonatomic, readonly) CLLocationCoordinate2D coordinate;
|
|
@property(nonatomic, readonly) MKMapRect boundingMapRect;
|
|
//- (BOOL)intersectsMapRect:(MKMapRect)mapRect;
|
|
- (BOOL)canReplaceMapContent;
|
|
|
|
@end
|