36 lines
862 B
Objective-C
36 lines
862 B
Objective-C
//
|
|
// AIRUrlTileOverlay.h
|
|
// AirMaps
|
|
//
|
|
// Created by cascadian on 3/19/16.
|
|
// Copyright © 2016. 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 AIRMapUrlTile : MKAnnotationView <MKOverlay>
|
|
|
|
@property (nonatomic, weak) AIRMap *map;
|
|
|
|
@property (nonatomic, strong) MKTileOverlay *tileOverlay;
|
|
@property (nonatomic, strong) MKTileOverlayRenderer *renderer;
|
|
|
|
@property (nonatomic, copy) NSString *urlTemplate;
|
|
|
|
#pragma mark MKOverlay protocol
|
|
|
|
@property(nonatomic, readonly) CLLocationCoordinate2D coordinate;
|
|
@property(nonatomic, readonly) MKMapRect boundingMapRect;
|
|
//- (BOOL)intersectsMapRect:(MKMapRect)mapRect;
|
|
- (BOOL)canReplaceMapContent;
|
|
|
|
@end
|