release 1.0.3

This commit is contained in:
Kuloud
2024-01-03 17:12:29 +08:00
parent 6f49fc9228
commit 68178f96e3
24 changed files with 596 additions and 29 deletions

View File

@ -234,6 +234,16 @@
[weakSelf.mapView clearDisk];
result(nil);
}];
[self.channel addMethodName:@"map#toScreenCoordinate" withHandler:^(FlutterMethodCall * _Nonnull call, FlutterResult _Nonnull result) {
CLLocationCoordinate2D location = [AMapConvertUtil coordinateFromArray:call.arguments];
CGPoint point = [weakSelf.mapView convertCoordinate:location toPointToView:weakSelf.mapView];
result([AMapConvertUtil dictionaryFromPoint:point]);
}];
[self.channel addMethodName:@"map#fromScreenCoordinate" withHandler:^(FlutterMethodCall * _Nonnull call, FlutterResult _Nonnull result) {
CGPoint point = [AMapConvertUtil pointFromDictionary:call.arguments];
CLLocationCoordinate2D coordinate = [weakSelf.mapView convertPoint:point toCoordinateFromView:weakSelf.mapView];
result([AMapConvertUtil arrayFromLocation:coordinate]);
}];
}
//MARK: MAMapViewDelegate