Search code examples
google-maps-api-3

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?


Solution

  • 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