Closed cruiserkernan closed 7 months ago
This is the implementation for #295
Looks good. Big thumb up for demo. I have just minor additions. I will update by myself. Map.cs methods. I would name RemoveControl and RemoveControls. Would do same in js. Also would add comment to js why i do clone.
Thanks! Yeah that is a good idea. And thanks for the quick releases!
Description
This pull request introduces the implementation of a new feature for the BlazorGoogleMaps library, enabling the removal of custom controls from the map. This enhancement aligns with the feature request submitted earlier. The changes include the addition of
RemoveControl
andRemoveAllControls
methods in theMap.cs
class for dynamic control management.Implemented Changes
Map.cs:
RemoveControl(ControlPosition controlPosition, ElementReference elementReference)
for removing a specific control based on its position and element reference.RemoveAllControls(ControlPosition controlPosition)
for removing all controls at a given position.objectManager.js:
Razor Components:
Impact
I'm looking forward to the review and hopeful integration of this new functionality into the BlazorGoogleMaps library.
Thank you for considering this pull request!