如何在React Native中通过npm安装google地图?

问题描述 投票:0回答:1

react native中npm上的Google地图是否有可用的软件包。我想使用google.maps.Bounds,google.maps.Point,google.maps.LatLngBounds,google.maps.Marker,google.maps.LatLng来使我在反应本机地图中绘制一条弯曲的折线,如下面的图像,如How to make a dashed curved polyline in Google Maps JS API?中所述。

enter image description here

javascript reactjs react-native google-maps react-native-maps
1个回答
1
投票

我发现可以通过npm安装此react-native-maps library。该库包含不同的Google Maps API组件,例如Map ViewMarkersPolylinemore

要开始使用,可以查看安装说明here

我希望这会有所帮助!

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.