Typo in API docs; use "map-resize" option in example