Re: [pmapper-users] Mapwidth & Mapheight
Brought to you by:
arminburger
From: Armin B. <arm...@gm...> - 2006-11-11 11:34:25
|
Kai the whole thing is a bit more complicated than I was hoping and it makes=20 a complete re-design of the general layout even more necessary. For a fast workaround you could try the following: use the default 'init()' function. Then in 'resiveDiv()' replace the=20 parts that set the variables winx & winy with the following winix =3D rawW('pm_master'); winiy =3D rawH('pm_master'); Then in map.phtml put the whole elements into a master DIV <div id=3D"pm_master" style=3D"position:absolute; top:0px; left:0px;=20 height:750px; width:900px"> .... </div> and adapt the width/height settings to the values you want. All of this is not very flexible at the moment and one modification can=20 cause some strange side-effects on other elements and needs an=20 adaptation there, in particular for the offsets in zoombox.js. Armin Kai Behncke wrote: > On Tue, 07 Nov 2006 19:02:01 +0100, Armin Burger wrote >> It should work if you do the following (assuming p.mapper in version=20 >> 2.1 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=20 >> taken from the map file, so change these settings there. >> >> You might need some fine tuning of the various DIV's for=20 >> height/width etc., depending how you define your layout, in order to=20 >> have the various elements correctly aligned to each other. >> >> armin >> > Hello List,=20 > so far I nearly have my apllication like I want it to be, but there is = still > the little problem of the Mapwidth and the Mapheight. > I changed "pmapper.js" like Armin said (thank you :-) ) and now I > find it much easier to adapt the layout to my wishes, but, for example: >=20 > If I change the width and height parameters in the mapfile (for example= to 600 > 600) and open http://localhost/pmapper/map.phtml for a moment=20 > the map appears with the width and height of 600 600, but one moment la= ter > it is going smaller. > I presume, there still must be an java script based automaticall resize= , but > where ? > Does anyone know? > Thank you very much. > =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 |