default size of map-preview  

Vous avez une bonne idée ou une demande de fonctionnalité ? Postez ici pour en discuter. Les concepts les plus demandées sont généralement mis en oeuvre, car Panotour est très axée sur la communauté.
User avatar
Topic author
Posts: 3550
Likes: 0 post
Liked in: 15 posts
Joined: Tue Jun 09, 2009 1:01 pm
Location: Salzburg

default size of map-preview

by gkaefer » Mon Feb 21, 2011 2:13 pm

default sourcecde produced by PTP if you enable map is:
Code: Select all
<plugin name="map" url="pano-data/map/map.jpg" keep="true" align="lefttop" x="10" y="10" width="23" height="40" handcursor="false" onloaded="action(hidemapspot);" onclick="action(openmap);"/>

if the map is in original size 258 * 439 pixel. So I assume your allgorythm says per default 10% or orig size place the default map on top left corner...

my screenshot shows the default map at 20%, I hardcoded xml to "width="46" height="80" and this is still very small, but now recognizable....

featurerequest: after uploading map image PTP can calculate the default 10% valuefor the map preview. It would be perfect than to have an option field showing these width and heights pixel values so you can adopt if desired... Or alternativley having a slider where you can change between 0-100% of original map size.

Liebe Gruesse,

Last edited by gkaefer on Mon Feb 21, 2011 2:28 pm, edited 1 time in total.

Who is online

Users browsing this forum: No registered users and 2 guests