I am embedding the customers geoJson data on the map only if that customer data is checked: true and In the browser below of the map, there is a loop of checkboxes with customer names, so while checking and unchecking the particular customer checkboxes, I am calling the map function to hide and show customers data on the map, it is working as needed but the problem is that map is refreshing every time on change of checkboxes.
For reference i am attaching stackblitz url :- https://stackblitz.com/edit/angular-draw-polygon-google-maps-hp8bxr?file=app%2Fapp.component.ts