These are chat archives for openseadragon/openseadragon

Sep 2018
Sep 05 2018 17:27

I am trying to set the start coordinates to a known position (openseadragon defaults to the dead center of the image), and I am having some trouble with the implementation. What I have so far is this

let pointFromPixel = function(x, y) {
    return map.viewport.pointFromPixel(new OpenSeadragon.Point(x,y));

let start = new pointFromPixel(1305.38,1632.73);
map.viewport.zoomTo(5, start, true);

None of the above appears to have any impact on the inital start position. (I have tried various combinations of the above commands and the documentation is really not clear which command to use for this). The objective, is I wish to have it navigate to the pixel coordinates as specified as the start (ideally no animation on start), and to not change the zoom level at all. Since these are the start coordinates, the map should open on inital render to these coordinates.

How can I make the objective as described above happen ?