【问题标题】:How to install google maps through npm in react native?react-native 如何通过npm安装谷歌地图?
【发布时间】:2020-07-22 01:04:46
【问题描述】:

npm 上是否有任何可用的包用于反应原生的谷歌地图。 我想使用 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? 中所述。

【问题讨论】:

    标签: javascript reactjs react-native google-maps react-native-maps


    【解决方案1】:

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

    要开始使用此功能,您可以查看安装说明here

    我希望这会有所帮助!

    【讨论】:

    • 谢谢...我已经得到了我想要的东西。反应原生地图具有几何库
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-09-08
    • 1970-01-01
    • 1970-01-01
    • 2016-04-29
    • 1970-01-01
    • 2022-01-12
    • 1970-01-01
    相关资源
    最近更新 更多