Re: [pmapper-users] Mapwidth & Mapheight
Brought to you by:
arminburger
From: Armin B. <arm...@gm...> - 2006-11-07 18:06:12
|
It should work if you do the following (assuming p.mapper in version 2.1=20 or so): in pmapper.js for function init(): comment out the line window.onresize =3D function(){resizeDiv();} then substitute the line resizeDiv(); with var mapurl =3D PM_XAJAX_LOCATION + 'x_load.php?'+SID+=20 '&zoom_type=3Dzoompoint'; updateMap(mapurl, ''); This worked for me for a first test. The mapW/mapH are the values taken=20 =66rom the map file, so change these settings there. You might need some fine tuning of the various DIV's for height/width=20 etc., depending how you define your layout, in order to have the various=20 elements correctly aligned to each other. armin Kai Behncke wrote: > Hello List, > I=B4m totally new to p.mapper and I=B4m quite impressed. > For a project I would like to change the surface of map.phtml a bit. >=20 > I would like to have a map that is fixed at a width of 400 px (the same= with > the height). > I thought I just could change: > var mapW =3D <?php echo "400"; ?>; > var mapH =3D <?php echo "400"; ?>; >=20 > , but if I do the map still spreads nearly the whole window. > Also in my mapfile I have 400 and 400, > What can I do to get a fixed map with these parameters? >=20 > Thank you very much, Kai >=20 > -- > Dipl.-Geogr. Kai Behncke >=20 > Institut f=FCr Geoinformatik und Fernerkundung (IGF) > Universit=E4t Osnabr=FCck > Kolpingstr. 7 > 49074 Osnabr=FCck >=20 > Raum: 01/308 > Tel.: +49 541 969-4450 > E-Mail: mailto:kbe...@ig...=20 > Web: http://www.igf.uni-osnabrueck.de >=20 >=20 > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users >=20 >=20 |