angular-ui/angular-google-maps — pull request #982 by lukehorvat (2014-12-06 16:59:53+00:00)
Title: Ensure map options are respected after free-drawing polygons

Resolves #952.

It's a bug fix, because there was already code in there to revert the map options after drawing, but it wasn't quite working the right way.

Changes:

* Use `@oldOptions = map.getOptions().options` instead of `@oldOptions = map.getOptions()`.
* Use `@map.setOptions _.defaults @oldOptions, enabledMapOptions` instead of `@map.setOptions _.extend @oldOptions, defaultOptions`.