etNorth() - bounds.getSouth(), bounds.getEast() - bounds.getWest());
            geoMap.setMinZoom(-5); // Small enough?
            if (maxDimension > 0) {
                geoMap.fitBounds(bounds);
            } else {
                geoMap.setView(bounds.getCenter(), geoMap.getZoom());
            }
        } else {
            let geomBounds = ${geomBounds};
            geoMap.fitBounds(geomBounds === undefined ? bounds : geomBounds);
            geoMap.setZoom(Math.min(geoMap.getZoom(), ${minZoomLevel}