fix for vector layers only showing up from zoom level 16 on + some
readability refactoring