react-native-amap3d icon indicating copy to clipboard operation
react-native-amap3d copied to clipboard

MapView中设置coordinate无效,设置center有效

Open xiaoliuxiansheng opened this issue 5 years ago • 0 comments

     "react": "16.13.1",
    "react-native": "0.63.3",
    "react-native-amap3d": "^2.0.1",

设置coordinate 无效 不论动态数据还是死数据 都无效 但是设置center 就有效

<MapView
                    style={styles.absoluteFill}
                    locationEnabled
                    // 定位间隔(ms)
                    locationInterval={3000}
                    //  定位的最小更新距离
                    distanceFilter={10}
                    onLocation={this._logLocationEvent}
                    // 设置地图中心
                    center={{
                        latitude: coordinate.latitude,
                        longitude: coordinate.longitude,
                    }}
                />

xiaoliuxiansheng avatar Oct 14 '20 05:10 xiaoliuxiansheng