Skip to content

Commit 7e6ed32

Browse files
authored
Prevent overview map from zooming (#66)
1 parent dda02bd commit 7e6ed32

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/viewer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,9 @@ class VolumeImageViewer {
824824
const overviewView = new View({
825825
projection: this[_projection],
826826
rotation: this[_rotation],
827-
zoom: 28 /** Default max zoom */
827+
zoom: 0,
828+
minZoom: 0,
829+
maxZoom: 0
828830
})
829831

830832
this[_overviewMap] = new OverviewMap({
@@ -1036,7 +1038,7 @@ class VolumeImageViewer {
10361038
const sopInstanceUID = DICOMwebClient.utils.getSOPInstanceUIDFromUri(src)
10371039
const frameNumbers = DICOMwebClient.utils.getFrameNumbersFromUri(src)
10381040

1039-
console.info(`retrieve frames ${frameNumbers}`)
1041+
console.info(`get tile (${tile.tileCoord})`)
10401042

10411043
if (this[_options].retrieveRendered) {
10421044
// allowed mediaTypes: http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_8.7.4.html

0 commit comments

Comments
 (0)