I'm using Adobe Scene7 BasicZoomViewer and I'm trying to adjust the max zoom resolution but nothing I'm trying has worked.
The docs definitely suggest this should be possible but like I said, so far nothing has worked.
var s7BasicZoomViewer = new s7viewers.BasicZoomViewer({
containerId: 's7viewer-' + iterator,
params: {
asset: assetUrl,
serverurl: serverUrl
},
handlers: {
initComplete: function () {
var zoomView = s7BasicZoomViewer.getComponent('zoomView')
// ive tried passing an object
zoomView.zoomStep = { step: 3, limit: 5 }
// ive tried directly setting it on the "zoomView" just like the docs suggest
zoomView.zoomStep = 2,5
}
}
})
To adjust the zoomstep you need to insert a zoomstep property to the BasicZoomViewer constructor config object.
var s7BasicZoomViewer = new s7viewers.BasicZoomViewer({
containerId: 's7viewer-' + iterator,
params: {
asset: assetUrl,
serverurl: serverUrl,
zoomstep: '1,1' // set the zoomstep property
}
})
This also goes for all of the Config Properties mentioned in the docs.
These config properties can also be placed on the URL of the page instead of the Viewers config object.
Example: https://example.com?zoomstep=1,1 would achieve the same goal as placing the zoomstep on the config object.