AMapFlutterMapPlugin.m 631 B

123456789101112131415161718
  1. #import "AMapFlutterMapPlugin.h"
  2. #import "AMapFlutterFactory.h"
  3. @implementation AMapFlutterMapPlugin{
  4. NSObject<FlutterPluginRegistrar>* _registrar;
  5. FlutterMethodChannel* _channel;
  6. NSMutableDictionary* _mapControllers;
  7. }
  8. + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
  9. AMapFlutterFactory* aMapFactory = [[AMapFlutterFactory alloc] initWithRegistrar:registrar];
  10. [registrar registerViewFactory:aMapFactory
  11. withId:@"com.amap.flutter.map"
  12. gestureRecognizersBlockingPolicy:
  13. FlutterPlatformViewGestureRecognizersBlockingPolicyWaitUntilTouchesEnded];
  14. }
  15. @end