Dear Armin, I set up the layerselect plugin but I have errors. When I load the page, I got a warning:
"Warning: array_key_exists() expects parameter 2 to be array, null give in C:\ms4w\apps\web\incphp\init\initmap.php on line 154 Warning: Invalid argument supplied for foreach() in C:\ms4w\apps\web\incphp\init\initmap.php on line 158" first before the page is loaded. I checked but cannot figure it out. Then the page is loaded but the loading bar is always there, the tool link element is blank, and the layers and legends are blank. Only the map (always loading) and the reference map are present. What I did are: - Enable the plugin by adding a line in config_XXXXX.xml file <plugins>layerselect</plugins> - Add the corresponding tool (Tool link elements) {linkid:'layers', name:'Layers', run:'PM.Plugin.Layerselect.openDlg', imgsrc:'layers-bw.png'} - Specify categories and groups in config_XXXXX.xml file <pmapper> <ini> ... <pluginsConfig> ... <layerselect> <categories> <category name=... <group>.......... ........... </pmapper> I think the problem is from the Tool link elements because when I comment it, everything works perfectly (but without the tools) Any idea or did I miss something? Thank you, Serge On Fri, Sep 16, 2011 at 1:42 PM, Armin Burger <armin.bur...@gmx.net> wrote: > > > On 16/09/2011 21:23, Rafanoharana Serge Claudio wrote: > > Dear Armin, > > > > I will work on it. What do you mean by "It requires the site admin to > > configure all potentially available layers."? > > it means that you as administrator of the web site need to define all > available layers and which of them are available/enabled as default in > the TOC. And the users can just select which of them they want to have > available in the application in the TOC. > > armin > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > -- Serge ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users