Re: [pmapper-users] Mapwidth & Mapheight
Brought to you by:
arminburger
From: Kai B. <kbe...@ig...> - 2006-11-10 18:08:50
|
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): >=20 > in pmapper.js for function init(): >=20 > comment out the line > window.onresize =3D function(){resizeDiv();} >=20 > then substitute the line > resizeDiv(); > with > var mapurl =3D PM_XAJAX_LOCATION + 'x_load.php?'+SID+=20 > '&zoom_type=3Dzoompoint'; > updateMap(mapurl, ''); >=20 > 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. >=20 > 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. >=20 > armin >=20 Hello List,=20 so far I nearly have my apllication like I want it to be, but there is st= ill 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: If I change the width and height parameters in the mapfile (for example t= o 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 late= r 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 Institut f=FCr Geoinformatik und Fernerkundung (IGF) Universit=E4t Osnabr=FCck Kolpingstr. 7 49074 Osnabr=FCck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbe...@ig...=20 Web: http://www.igf.uni-osnabrueck.de |