关于Android添加百度地图的问题



  • 有谁知道新版本Android怎么添加GPS和百度地图么?

    试过react-native-baidumap https://github.com/yiyangest/react-native-baidumap
    但是配置好后运行直接退出,也没显示报错的地方,能帮忙看看么?或者大家有新的办法麻烦告诉我
    0_1465983068126_05C5F2AD-552A-40F2-A071-1439A2117C4E.png
    0_1465983115993_05C5F2AD-552A-40F2-A071-1439A2117C4E.png

    render() {
    return (
    <View style={styles.container}>
    <Text style={styles.welcome}>
    Welcome to React Native!
    </Text>
    <BaiduMap style={{flex: 1, width: 300}}
    showsUserLocation={true}
    userLocationViewParams={{accuracyCircleFillColor: 'red', image: require('./start_icon.png')}}
    annotations={[{latitude: 39.832136, longitude: 116.34095, title: "start", subtile: "hello", image: require('./stop_icon.png')}, {latitude: 39.902136, longitude: 116.44095, title: "end", subtile: "hello", image: require('./stop_icon.png')}]}
    overlays={[{coordinates: [{latitude: 39.832136, longitude: 116.34095}, {latitude: 39.832136, longitude: 116.42095}, {latitude: 39.902136, longitude: 116.42095}, {latitude: 39.902136, longitude: 116.44095}], strokeColor: '#666666', lineWidth: 3}]}
    />
    </View>
    );
    }



  • 您好,我也有这个问题,请问大神你就解决方案了嘛?求帮助~


登录后回复