Moved map initialization above max_zoom_levels calculation