I'm not very familiar with AGM.
Seems like they provide similar features, but with a slightly different API.
AGM also seems to have some extra libs to draw on the map - angular-maps.com/api-docs/.
Looking into the feature, I would guess that the official component will follow the Angular upgrade paths - whereas for AGM it might take some time to follow the Angular upgrades.
The official Angular wrapper lowers the setup cost, but it is still worth keeping map options and event handling close to the feature that owns them. That makes it easier to test marker and viewport changes without turning the map component into a global state container.
Name is Gad Iradufasha,
Web developer and System Analyst/Designer
Skills In web development are:
SEO ( Search Engine Optimization),
Building Websites & Web apps.
Visual artist.
I'm not following React as I am Angular, but AFAIK there is no "official react" google map component. I'm sure there's a 3rd party module that has a google map component tho, and if that's not the case you could write a wrapper around the google map api.
The ViewChild in the code after "As an example, we can log the current center of the map." seems to be the wrong one :)
Besides that: A very helpful article!
What's the main difference between this and AGM?
I'm not very familiar with AGM.
Seems like they provide similar features, but with a slightly different API.
AGM also seems to have some extra libs to draw on the map - angular-maps.com/api-docs/.
Looking into the feature, I would guess that the official component will follow the Angular upgrade paths - whereas for AGM it might take some time to follow the Angular upgrades.
Awesome response number 2!! :) Yeah, AGM hasn't been updated in a year I believe
According to the @agm/core npm page, AGM came out of beta 2 months ago. So seems at least kind of active.
winning
The official Angular wrapper lowers the setup cost, but it is still worth keeping map options and event handling close to the feature that owns them. That makes it easier to test marker and viewport changes without turning the map component into a global state container.
Great post... Anyways, Is Google Map available in React.js too?
I'm not following React as I am Angular, but AFAIK there is no "official react" google map component. I'm sure there's a 3rd party module that has a google map component tho, and if that's not the case you could write a wrapper around the google map api.
The API it is
The ViewChild in the code after "As an example, we can log the current center of the map." seems to be the wrong one :)
Besides that: A very helpful article!
Tim... how would we incorporate a proxy to address CORS Restrictions?