//
//  RCTBaiduMap.h
//  RCTBaiduMap
//
//  Created by lovebing on 4/17/2016.
//  Copyright © 2016 lovebing.org. All rights reserved.
//

#ifndef BaiduMapView_h
#define BaiduMapView_h


#import <React/RCTViewManager.h>
#import <React/RCTConvert+CoreLocation.h>
#import <BaiduMapAPI_Map/BMKMapView.h>
#import <BaiduMapAPI_Map/BMKPinAnnotationView.h>
#import <BaiduMapAPI_Map/BMKPointAnnotation.h>
#import <UIKit/UIKit.h>
#import "OverlayUtils.h"
#import "OverlayPolyline.h"
#import "OverlayMarker.h"
#import "OverlayCircle.h"
#import "ClusterAnnotation.h"

@interface BaiduMapView : BMKMapView <BMKMapViewDelegate>

@property(nonatomic) BOOL clusterEnabled;
@property(nonatomic) int childrenCount;
@property (nonatomic) BMKUserLocation *userLocation;
@property (nonatomic, copy) RCTBubblingEventBlock onChange;

- (void)setZoom:(float)zoom;
- (void)setCenterLatLng:(NSDictionary *)LatLngObj;

- (void)setScrollGesturesEnabled:(BOOL)scrollGesturesEnabled;
- (void)setZoomGesturesEnabled:(BOOL)zoomGesturesEnabled;

- (OverlayView *)findOverlayView:(id<BMKOverlay>)overlay;
- (OverlayMarker *)findOverlayMaker:(id<BMKAnnotation>)annotation;


@end

#endif
