[Pmapper-users] bug in pmapper 1.2.0?

2006-03-17 Thread Armin Burger
Thanks for the report. It probably never happened to me because I never 
used only 1 group, what in fact is not very likely. I will modify the JS 
code (that is one of the oldest parts, I guess, something from the very 
beginning...) for the next versions.

armin

Alessandro Pasotti wrote:
> Hello,
> 
> I've spent a few hours trying to understand this strange behaviour:
> 
> I have 1 test layer (and hence only 1 test group), almost everything was set 
> to defaults.
> 
> Procedure in firefox:
> 
> - Clicking on the checkbox in the toc unchecks it and refresh the map with no 
> layers loades (map is blank), as expected
> - Clicking again on the checkbox, reloads the map but DO NOT LOAD ANY LAYER.
> 
> This happens because in javascript/mapserver.js line 336
> 
> for (var i=0; i 
> parent.tocFrame.document.layerform.groupscbx.length is undefined if there is 
> just one htmlinput element.
> 
> 
> Adding an "if" check solved the problem for me:
> ---
> 
> function getLayers() {
> var layerstring = "&groups=";
> if(parent.tocFrame.document.layerform.groupscbx.length){
> for (var i=0; i {
> if (parent.tocFrame.document.layerform.groupscbx[i].checked == 
> true) {
> layerstring += 
> parent.tocFrame.document.layerform.groupscbx[i].value+'+';
>   }
> }
> } else {
>   if (parent.tocFrame.document.layerform.groupscbx.checked == true){
> layerstring += parent.tocFrame.document.layerform.groupscbx.value+'+';
>   }
> }
> 
> layerstring = layerstring.substr(0, layerstring.length - 1);
> return layerstring;
> }
> 
> 



[Pmapper-users] which branch for a new project

2006-03-17 Thread luca marletta
Actually Armin I had the same experience also with this last release :-/.

But I noticed this behavior that maybe could help.

It seems that EVERYTIME you refresh the image or change zone or zoom
the previous is still in browser memory, or somewhere in the cache, as
preloaded and for few instant is there before the new one, I mean
everytime not just when you see the error.
I noticed it because of some instants of delay for my busy server and
even if after it chages it for few instants the previous image was
there.
That could be important because means that the problem is not the
browser mismatch the image or file image name but just, sometimes,
doesn't reload after created the new one.

I don't know if it help but I will not look for error in cache or
browser behaviour but in some priority of load or preload image.

I think these are just obvious reminds but I'm still curious on this stuff

sorry if they are just silly suggestions

luca

On 3/16/06, Armin Burger  wrote:
> Luca,
> did you still get that problem with the version included in the
> pmapper2_2006-03-07.zip? If yes, it's becoming a bit mysterious to me...

--
luca marletta



[Pmapper-users] bug in pmapper 1.2.0?

2006-03-17 Thread Alessandro Pasotti
Hello,

I've spent a few hours trying to understand this strange behaviour:

I have 1 test layer (and hence only 1 test group), almost everything was set 
to defaults.

Procedure in firefox:

- Clicking on the checkbox in the toc unchecks it and refresh the map with no 
layers loades (map is blank), as expected
- Clicking again on the checkbox, reloads the map but DO NOT LOAD ANY LAYER.

This happens because in javascript/mapserver.js line 336

for (var i=0; i

[Pmapper-users] which branch for a new project

2006-03-17 Thread Alessandro Pasotti
Il 10:55, gioved? 16 marzo 2006, Armin Burger ha scritto:
> *p.mapper 1* is more tested and will not change any more directory

Thank you Armin and everybody who commented on this topic, 

since we are somewhat in a hurry, I believe we will stick to the "1" series 
where we feel more "at home". Within a better time frame I would have been 
happier to go straight in the "2" branch.


-- 
Alessandro Pasotti
ICQ# 245871392
Linux User #167502