rungwiroon / BlazorGoogleMaps

Blazor interop for GoogleMap library
MIT License
319 stars 102 forks source link

Add suppressUndo to polylineOptions #268

Closed markschroeder77 closed 1 year ago

markschroeder77 commented 1 year ago

This PS allows one to hide the undo button in the drawing manager by adding the undocumented suppressUndo parameter to the PolygonOptions class.

valentasm1 commented 1 year ago

I dont get it. I tried to drawing manager, but i dont see any undo. Small demo to reporduce?

markschroeder77 commented 1 year ago

undo Map2.zip

Sorry it actually has nothing to do with DrawingManager, it's a Polyline option. (I was just using it with DrawingManager at the time) It allows one to hide the undo button that comes up when a polyline is user edited. I think it may only work with the beta version of Google Maps.

To demo:

valentasm1 commented 1 year ago

Now it make sense. Screenshot helped a lot.

valentasm1 commented 1 year ago

https://www.nuget.org/packages/BlazorGoogleMaps/3.0.8