// we also need the map-scale to calculate the recommended zoom-level
double mapScale = layer.getMap().getViewportModel().getScaleDenominator();
ReferencedEnvelope mapExtentMapCrs = layer.getMap().getViewportModel().getBounds();
WMTScaleZoomLevelMatcher zoomLevelMatcher = WMTScaleZoomLevelMatcher.createMatcher(
mapExtentMapCrs, mapScale, wmtSource);
return wmtSource.getZoomLevelFromMapScale(zoomLevelMatcher, scaleFactor);
} catch (Exception exc) {
WMTPlugin.log("[WMTLayerPropertyPage.getDefaultZoomLevel] Failed ", exc); //$NON-NLS-1$