Sie sind nicht angemeldet.

1

Dienstag, 18. Oktober 2022, 17:22

Align flat pano image to top edge of browser

I'm using the flat pano with the following view attribute:

<view hlookat="0.0"
vlookat="0.0"
fovtype="MFOV"
fov="120"
maxpixelzoom="1.0"
fovmin="70"
fovmax="140"
limitview="fullrange" />
this is in a context where hotspots on a map point towards equirectangular images and then back to the flat pano map.
The limitview="fullrange" is giving me the best result as the flat pano loads every time with full view of the map image.
But the only thing that I'm trying to get is to align the map image's upper edge to the top edge of the browser (when the image loads on a mobile screen, it is actually vertically centred in the viewport, so there's a black space on top and bottom. How to get the flat image to load with its upper edge aligned to the top of the browser?

Reggie

Schüler

Beiträge: 92

Wohnort: Seymour, TN US

Beruf: Virtual Tour Photographer

  • Nachricht senden

2

Sonntag, 30. Oktober 2022, 14:38

Tuur created a link to an awesome add-in that he calls the "Toolbox." If you the choose "Numbers" item on the tools list you could drag your map to where top of map is level with top of the stage or screen. Press L to get a pop-up of the values and use the vlookat value. I think this will help. Here's the link to Turr's Toolbox: https://krpano.com/forum/wbb/index.php?p…olbox#post74910