Hi Walter, thanks a lot for the suggested modification. In fact the problem did not just appear with the GIF stopping too early. Especially when connections to/from the server were not really good there was the problem that the necessary resizing and re-positioning of the imgMap object took place *before* the image has actually been replaced. This had some strange effects like swapping back to the old image and then to the new.
I put in the onload event of the mapImg element all the resizing/re-positioning (function 'resetMapImgParams()') and it seems to work now much smoother. I put a modified version for testing on the server dl dir. -> http://www.pmapper.net/dl/pmapper2_2005-12-12.zip.filepart The modifications were just in the files map.phtml, xmlhttp.js and pmapper.js. I hope to ingest the new functions from pm 1.1.0 also into the next release of pm 2 before christmas. Armin Walter Lorenzetti wrote: > Hi all, > > with pmapper 2 i had a problem with loading gif... > the loading gif hidden when the mapserver image it wasn't yet loaded > so this the effect it was very badly: there was too time gap from the end of > loading gif and the appaeared of mapserver image > > i resolve it in this manner: > in map.phtml file in img tag of main map i put > > onload="document.getElementById('loading').style.visibility='hidden'; > > Armin what do you think about it? > > By > Walter >
