You are not logged in.

1

Tuesday, March 10th 2020, 7:18pm

Scale of layers according to diplay size

Hi guys! Explain me please how to make the scale of marked layers correct. To see them on mobile display like on pc display. layers in mobile to big and overlap each other. thanks

Sergey74

Intermediate

Posts: 168

Location: Russia, Chelyabinsk

Occupation: professional noob

  • Send private message

2

Tuesday, March 10th 2020, 7:43pm

Different sizes can be set for different devices. https://krpano.com/docu/xml/#devicechecksforattributes
translation difficulties *huh*

3

Wednesday, March 11th 2020, 12:59pm

Different sizes can be set for different devices. https://krpano.com/docu/xml/#devicechecksforattributes
yeah! it works. thank you! but now new problem was appered. mapspots and "+" "-" lost their position in mobile. i have no idea how to correct it.

Source code

1
2
3
	<layer name="maps" keep="true" state="closed" type="container" bgcolor="0x000000" bgalpha="0" align="leftbottom" scalechildren="true"  width="825" height="625" x="0" y="0"> 

		<layer name="map_1" url="images/map_ext_e.png" keep="true" align="leftbottom" x="0" y="0" scale.normal="1" scale.mobile="0.5" visible="false" handcursor="false">  <layer name="mapspot_1_6" style="mapspot|tooltip" x="198" y="60" zorder="8"  onclick="closeMap(map_1); wait(0.5); loadscene(scene__DSC4617-HDR_Panorama1, null, MERGE, BLEND(1));"/></layer></layer> <plugin name="plus"  keep="true" url="images/plus.png" align="lefttop" scale.mobile="0.5" x="20" y="65" alpha="0.6" onover="tween(alpha, 0.9)" onout="tween(alpha, 0.6)" ondown="set(fov_moveforce,-1);"  onup="set(fov_moveforce,0);" />  <plugin name="minus"  keep="true" url="images/minus.png" align="lefttop" scale.mobile="0.5" x="20" y="105" alpha="0.6" onover="tween(alpha, 0.9)" onout="tween(alpha, 0.6)" ondown="set(fov_moveforce,+1);" onup="set(fov_moveforce,0);" />

San7

Intermediate

Posts: 309

Occupation: coding in krpano

  • Send private message

4

Wednesday, March 11th 2020, 2:38pm

Hi try to put scalechildren ="true" If the points belong to this layer