How do i keep only 1 instance on google maps angular when changing routes?
I have an Angular 15+ app that uses the @angular/google-maps package. I have a component called app-map that includes the element. The issue I’m facing is that every time I navigate to a route that contains the component, the map is re-rendered, and I see multiple requests to the Google Maps API, the getViewPortInfo request.
Cannot click and draw/drag polygon in @angular-google-maps (not @agm/core)
I have this in my angular 18 project. I use "@angular/google-maps": "^18.2.3"
for this. In this map component when I do right click I pull down a custom context menu. There I have an option called Draw polygon
below is the method. The problem is I can’t drag the point to draw a polygon. When I drag the point in map the entire map is dragged instead of polygon.