1 /** 2 * Copyright (c) 2015-present, Facebook, Inc. 3 * All rights reserved. 4 * 5 * This source code is licensed under the BSD-style license found in the 6 * LICENSE file in the root directory of this source tree. An additional grant 7 * of patent rights can be found in the PATENTS file in the same directory. 8 */ 9 10 #import <React/RCTViewManager.h> 11 #import "AIRMap.h" 12 13 #define MERCATOR_RADIUS 85445659.44705395 14 #define MERCATOR_OFFSET 268435456 15 16 @interface AIRMapManager : RCTViewManager 17 18 19 - (void)setCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate 20 zoomLevel:(double)zoomLevel 21 animated:(BOOL)animated 22 mapView:(AIRMap *)mapView; 23 24 - (MKCoordinateRegion)coordinateRegionWithMapView:(AIRMap *)mapView 25 centerCoordinate:(CLLocationCoordinate2D)centerCoordinate 26 andZoomLevel:(double)zoomLevel; 27 - (double) zoomLevel:(AIRMap *)mapView; 28 29 @end 30