Hide the undo button when editing shapes with Goog

2020-06-13 14:00发布

问题:

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?

回答1:

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