Constants aren't. Using var for viewportDistance and zoomedViewportDistance makes things better. See comments in and close Issue #7