Dear Armin, I found out that there was one comma missing. I still have error with the plugin.
In my config.xml, I have: <pmapper> <ini> <pmapper> ..... <plugins>layerselect</plugins> </pmapper> ... ... <map> ... <categories> <category name="cat_pot"> <group>potential</group> </category> <category name="cat_pos"> <group>road</group> <group>river</group> ... </category> ... </map> ... <pluginsConfig> ... <layerselect> <categories> <category name="cat_pot"> <group>potential</group> </category> <category name="cat_pos"> <group>road</group> <group>river</group> ... </category> </categories> </layerselect> </pluginsConfig> ... I comment and uncomment the <allGroups> but no success. When I click the Layer button/link, I obtain a dialog box with the error: Group "p" is not defined correctly in<categories>. Check config XML! When I click OK, it goes to the next character which is o Group "o" is not defined correctly in<categories>. Check config XML! .... all characters from "p o t e n t i a l", then the next group "r o a d" then "r i v e r" ...... Thank you for your help, Serge On Sat, Sep 17, 2011 at 2:18 AM, Armin Burger <armin.bur...@gmail.com>wrote: > 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 > -- Serge ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users