please run some JavaScript debugging (see Wiki -> FAQ), I would guess there is a comma missing or one too much.
In any case, I found out a misleading description in the Readme.txt (changed and committed to SVN trunk), There is a special requirement for the XML config file: The plugin only works correctly if: - the layers/groups are used together with category definitions <map> <categories> - there is no entry for <map> <allGroups> So comment out the <allGroups> tag for testing the plugin. armin On 17/09/2011 00:41, Rafanoharana Serge Claudio wrote: > 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 > > ------------------------------------------------------------------------------ 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