Hi all, hi Armin,
I think to find a bug in pmapper2
After start pmapper 2 first time and select serveral layers if I close the
window and restart pmapper I find on main map layers activated but not
checked in legend!
So to resolve the problem i change the function writeJSArrays() in legend.php:
from
$defGroups = $_SESSION["defGroups"];
to
if (isset($_SESSION["groups"]) && count($_SESSION["groups"]) > 0) {
$defGroups = $_SESSION["groups"];
}else{
$defGroups = $_SESSION["defGroups"];
}
for to find in checked status also the layers activated after first start of
application
Armin what do you think?
Bye
Walter
--
Walter Lorenzetti
email+jabber: walter at faunalia.it
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)347-6597931