I made now some tests and could not reproduce neither of your problems. If I define in pmMapSelectSettings keepSession:false
and in php.ini session.use-cookies is set to 0 then the default groups/layers are correctly activated after changing to another map. You can check that also by looking at the source code of the page and the JS var PMap.defGroupList. Also the permanent adding of and ampersand to the end of the config=xyz does not happen for me. But I guess there are settings (in PHP? Apache?) where the ampersand is added automatically, don't know why. In this case your patch works correctly, otherwise it removes the needed ampersand. In worst cases one can change the line window.location = configUrl; to window.location = configUrl.replace(/&&/, '&'); I will add the possibility to delete all session variables (or just specified ones), so this should then work even in case of use_cookies=1. armin On 20/03/2008 08:17, Geografisches Informationssystem wrote: > Hello p.mappers ;-), > > I found out in (my) installation 3.2.0 with the plugin "mapSelect", that > at every change of the config an '&' is added to the variable searchLoc > i.e. > > 1st change it is http://10.170.0.20:8080/map.phtml?config=lvm& > 2nd it is > http://10.170.0.20:8080/map.phtml?config=default&& > 3rd it is http://10.170.0.20:8080/map.phtml?config=lvm&&& > and so on. Doesn't look pretty. > > Fixed it with adding the "&" to the replace statement in line 29 (?): > configUrl += > searchLoc.replace(/config=[a-zA-Z0-9\_&]+/,'config=' + $(this).val()); > > Don't know what side effect this may have. This or "a professional > workaround" should be added to the plugins' source;-). > > The second problem with the plugin is, that after an change no layers > are selected. I think that at least the initial layers coming out of the > config.ini (= variable "defGroups" ) should be activated by adding > "&dg=blabla,blublu" to the variable "configUrl" of the plugin. > > Any idea? > > Thanx & happy easter > > Guido > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users