且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在React Native中从lat,long数组映射多个标记

更新时间:2023-01-07 18:12:07

我解决了非常简单的问题

I fixed the problem it was pretty easy

由于react-native-maps api需要纬度"和经度"作为数组中的键.

Since the react-native-maps api takes "latitude" and longitude" as keys in the array.

我替换了所有的纬度"和"lon"表示并绘制了所有的机场.

I replaced all the "lat" and "lon" and it plots all the airports.