This feature request proposes the addition of functionality to remove custom controls from the map in the BlazorGoogleMaps library. The implementation includes new methods: RemoveControl(ControlPosition controlPosition, ElementReference elementReference) and RemoveAllControls(ControlPosition controlPosition) in the Map.cs class. This feature allows for dynamic control management based on the control's position and element reference.
Suggested Changes
I have developed a solution that introduces the following changes:
In Map.cs, two new methods are added for removing controls individually or all at once based on their position.
Adjustments in objectManager.js to accommodate the removal of controls.
Modifications in the corresponding Razor components to demonstrate the usage of these new methods.
Impact and Benefits
Enhances the BlazorGoogleMaps library by providing flexibility in managing map controls.
Facilitates dynamic user interfaces by allowing for the removal of controls in response to user interactions or other conditions.
I plan to submit a pull request with these changes for review and integration into the main codebase.
Description
This feature request proposes the addition of functionality to remove custom controls from the map in the BlazorGoogleMaps library. The implementation includes new methods:
RemoveControl(ControlPosition controlPosition, ElementReference elementReference)
andRemoveAllControls(ControlPosition controlPosition)
in theMap.cs
class. This feature allows for dynamic control management based on the control's position and element reference.Suggested Changes
I have developed a solution that introduces the following changes:
Map.cs
, two new methods are added for removing controls individually or all at once based on their position.objectManager.js
to accommodate the removal of controls.Impact and Benefits
I plan to submit a pull request with these changes for review and integration into the main codebase.
Thank you for considering this feature request!