Use standard API collapse() and extend() instead of setBaseAndExtent()