Explicitly set numZoomLevels for the map and each layer.