This adds a function, getZoomedScaleBounds, to act as a counterpart to getInitialScaleBounds (getting the scale ranges after zoom rather than before) and zoomScale (reading, rather than writing, each scale's zoom).
A question for code review: Is it okay to return the internal object directly, or should I return a new object to ensure that it can't be mutated?
This adds a function,
getZoomedScaleBounds
, to act as a counterpart togetInitialScaleBounds
(getting the scale ranges after zoom rather than before) andzoomScale
(reading, rather than writing, each scale's zoom).A question for code review: Is it okay to return the internal object directly, or should I return a new object to ensure that it can't be mutated?