Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide the undo button when editing shapes with Google Maps API v3

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?

like image 700
CrazyTim Avatar asked Jun 22 '12 13:06

CrazyTim


1 Answers

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

like image 143
blade Avatar answered Oct 12 '22 22:10

blade