fix zooming out problem in non-quilted mode
fix linewidth extern to float
simplify logic
fix background clearing
Revert "simplify logic"

This reverts commit b1fcdee7ec393e8db5400cd458dbb2f5b62f7902.
fix crash when loading enc for the first time
fix issue where building compressed cache loaded every enc file
fix rotated vector charts in non-quilted mode when part of the screen is the background map
add smooth pan/zoom option back for both opengl and non opengl mode