[英]@agm/core and @angular/google-maps what are the differences between them for google maps
使用哪一个取决于您需要的功能集。 我发现自己的@agm/core 为我提供了更多功能,但这又取决于您的需要。
@agm/core
是由Sebastian Holstein开发的 Angular 适配器 JavaScript Core API 非常受欢迎,在 JavaScript
@angular/google-maps
由官方 Angular 团队开发。
所以,如果从头开始,我会实施官方解决方案,因为它很可能会有支持和维护。
Important : to use the Google Maps Javascript Core API in a prod environment you have to pay ( Google Maps Javascript API usage and billing ).
如果您不需要专门使用 Google 地图,您可以考虑使用开源替代库,例如 leaflet( 比较)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.