Reputation: 7333
Is there a way to hide (ie: don't show, because its annoying) the undo button when editing a shape on a v3 Google Map?
Upvotes: 10
Views: 3120
Reputation: 139
I am using Angular Google map and when I create new object from google.maps.Circle
or google.maps.Polygon
the suppressUndo
gives me error is not assignable to parameter of type
so i fixed it as below:
const savedCircle = new google.maps.Circle({
map: map,
....
});
savedCircle.set('suppressUndo',true );
I used set('suppressUndo',true ) and now it is working
Upvotes: 0
Reputation: 12933
Try the undocumented suppressUndo
parameter.
It seems to work fine with google.maps.Circle
var c = new google.maps.Circle({
map: myMap,
...
suppressUndo: true
});
related issue in the issue tracker: http://code.google.com/p/gmaps-api-issues/issues/detail?id=4013
Upvotes: 19