Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

angular-google-maps vs. angular-ui / ui-map

I'm new to angularJS and like to build an simple application, where an google map is displayed in order to load long/lat coordinates to display them in form of markers insight the map. For me it looks like, there are two main google-map extensions for angluarJS:

https://github.com/nlaplante/angular-google-maps

and

https://github.com/angular-ui/ui-map

Which one would you recommend to use? Are there any main differences? Which one could be more "official" (to get longer support, etc...)?

like image 535
The Bndr Avatar asked Feb 14 '23 12:02

The Bndr


1 Answers

At this moment, I'd suggest using https://github.com/nlaplante/angular-google-maps (AGM). It is more advanced and mature than ui-map. AGM has several abstraction layers for markers, polygons, etc. and the bootstrapping process is more clean. I personally don't like Ui-Map's bootstrapping method. You have to define a global callback which is to be called after the google maps api is loaded.

  • AGM has a bigger community.

  • On the contrary UI-Map is less than 4KB while AGM is more than 100KB. So, UI-Map is a better solution if you are looking for something light weight (especially if the map is just a part of a bigger application).

like image 200
ningsuhen Avatar answered Feb 26 '23 23:02

ningsuhen