Commit 20d84519 authored by Qiu Xiang's avatar Qiu Xiang

实现 iOS 倾斜度接口

parent a41c45e1
...@@ -149,7 +149,7 @@ import MapView from 'react-native-amap3d' ...@@ -149,7 +149,7 @@ import MapView from 'react-native-amap3d'
- [x] 室内地图 - [x] 室内地图
- [ ] 内置地图控件(指南针和比例尺通过内置接口提供支持,定位按钮、缩放按钮需要自行实现) - [ ] 内置地图控件(指南针和比例尺通过内置接口提供支持,定位按钮、缩放按钮需要自行实现)
- [x] 手势交互(平移、缩放、旋转、倾斜) - [x] 手势交互(平移、缩放、旋转、倾斜)
- [ ] 中心坐标、缩放级别、倾斜度 🚀 - [x] 中心坐标、缩放级别、倾斜度 🚀
- [ ] 地图事件(onPress、onLongPress、onLocation) - [ ] 地图事件(onPress、onLongPress、onLocation)
- [ ] 地图标记(Marker) - [ ] 地图标记(Marker)
- [ ] 基本属性及事件 - [ ] 基本属性及事件
......
...@@ -15,4 +15,8 @@ ...@@ -15,4 +15,8 @@
super.centerCoordinate = json; super.centerCoordinate = json;
} }
- (void)setTilt:(CGFloat)degree {
super.cameraDegree = degree;
}
@end @end
...@@ -49,4 +49,6 @@ RCT_EXPORT_VIEW_PROPERTY(mapType, MAMapType) ...@@ -49,4 +49,6 @@ RCT_EXPORT_VIEW_PROPERTY(mapType, MAMapType)
RCT_EXPORT_VIEW_PROPERTY(coordinate, CLLocationCoordinate2D) RCT_EXPORT_VIEW_PROPERTY(coordinate, CLLocationCoordinate2D)
RCT_EXPORT_VIEW_PROPERTY(tilt, CGFloat)
@end @end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment