react-native-amap3d
react-native-amap3d copied to clipboard
react-native 高德地图组件,使用最新 3D SDK,支持 Android + iOS
在mapview加了两个marker,安卓手机在点击按钮返回上一页时,crash。报错:the specified child already has a parent. You must call removeView() on the child's parent first 查到一个非常类似的react-native-maps的issue: https://github.com/react-native-maps/react-native-maps/issues/2787 里面提到的解决方案是不用
如[高德SDK自定义地图元素颜色](https://lbs.amap.com/product/mapstyle#/)
就是能计算是一个缩放级别能把所有的覆盖物显示出来
看起来是未处理nil的类型错误 ``` Thread 0 name: Thread 0 Crashed: 0 SCRM 0x000000010062c524 Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value + 0 (MultiPointManager.swift:0) 1 SCRM 0x000000010062c524 MultiPoint.getOverlay() +...
 这样呢 _Originally posted by @hhy123540 in https://github.com/qiuxiang/react-native-amap3d/issues/696#issuecomment-973839820_
这行代码,在 react 18 下,ts 报错 https://github.com/qiuxiang/react-native-amap3d/blob/main/lib/src/cluster/index.tsx#L66。 ```ts renderCluster?: (params: ClusterParams) => React.ComponentType; ``` 修改为ts构建通过 ```ts renderCluster?: (params: ClusterParams) => React.ReactNode; ```
高德源sdk上有AMap. getScalePerPixel()这个方法,我在本项目下这样使用this.mapView.call('getScalePerPixel') 不出结果麻烦大佬指点一下谢谢。
hread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x0000000000000000 LXCloud`@objc static AMapCircleManager.requiresMainQueueSetup() at :0 * frame #2: 0x000000010ae929c0 LXCloud`-[RCTModuleData setUp](self=0x0000600000fe5140, _cmd="setUp") at RCTModuleData.mm:75:31 frame #3:...