Re: [pmapper-users] Get list of layers into js variable

2013-03-07 Thread Armin Burger
all parameters from the XML config file are available via the JS var PM.ini To get session variables and do something with them you can use the function PM.getSessionVar(varname, callback), e.g. like PM.getSessionVar('categories', 'PM.Plugin.Layerselect.updateTree(respons

[pmapper-users] Get list of layers into js variable

2013-03-07 Thread Chris Jackson
Hi all I am trying to get a list of loaded layers in p.mapper into a js variable so if 2 particular layers are on then a pop-up is triggered. I thought the best way is to retrieve the groups out of the php session, but having trouble getting the values into a variable, any steer would be apprecia