I want to implement google map
with angular
. I came across two libraries, not sure which one to use
npm install @angular/google-maps
npm install @agm/core --save
Can anyone please let me know which one is latest and has easy to develop or both are same.
This type of map I want to develop
Library | Doc | npm |
---|---|---|
@angular/google-maps | link | link |
@agm/core | link | link |
@agm/core
is an Angular adapter of Google Maps JavaScript Core API developed by Sebastian Holstein that is very popular in npm but is no longer maintained, the last update was in July 2020.
@angular/google-maps
is developed by the official Angular team and the preferred choice as it has better support and maintenance.
Important: to use the Google Maps Javascript Core API in a prod environment you have to pay (Google Maps Javascript API usage and billing).
If you don't need to use Google Maps specifically, you could consider an open-source alternative library like leaflet (comparison)
Library | Doc | npm |
---|---|---|
leaflet | link | link |
Which one to use depends on which feature set you need. I found my self @agm/core providing me more features but again it depends on what you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With