google-map-react和react-google-maps之间的区别 [英] Difference between google-map-react and react-google-maps

查看:306
本文介绍了google-map-react和react-google-maps之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有两种最流行的Google Maps API(根据每周的npm下载和github repo星级判断).对于像我这样的初学者来说,这非常令人困惑,因为我无法决定这些库可以为我的项目带来什么,而不能仅通过查看文档来决定什么?

简而言之,使用 react-google-maps .我没有在互联网或SO上找到任何比较.

There are two most popular react abstraction of google maps API(judging by the weekly npm downloads and github repo stars). For a beginner like me, it is very confusing as I am not able to decide what can these libraries bring to my project and what not by merely looking at the documentation?

In short what are the pros and cons of using google-map-react and react-google-maps. I didn't find any comparison on the internet or SO.

推荐答案

请注意,react-google-maps项目的维护已超过一年,请参见 https://github.com/tomchentw/react-google-maps/issues/986 他们建议查看 @ react-google-maps/api ,但这是一个相当年轻的项目,在GitHub上还没有很多明星. 我个人喜欢 google-map-react 仍然在(相当主动)开发.

Be carefull, react-google-maps project is unmaintained more than a year, see https://github.com/tomchentw/react-google-maps/issues/986 They suggest to look at @react-google-maps/api but it is quite a young project and doesn't have a lot of stars on GitHub yet. I personally like google-map-react which is still under (quite active) development.

这篇关于google-map-react和react-google-maps之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆