Now works perfectly! Problem solved. Thanks Armin! 2009/4/29 Armin Burger <[email protected]>: > Alberto > > there was a small bug that did not set the current config as the selected > one in the drop-down list. Change in mapselect.js line 41 > var presel = key == PM.Map.config ? 'selected="selected"' : ''; > to > var presel = key == PM.config ? 'selected="selected"' : ''; > and it should work. The patch is also committed to SVN. > > armin > > On 29/04/2009 10:03, Alberto Poggi wrote: >> >> Hi Armin, I tried the new configuration and you can already see many >> improvements. >> Now the list of choice of the map is visible. You can go to the second >> map. >> The problem arises when you want to go back to the first map, the >> default. Even if you select the map does not change. >> The map shown is always the second. >> >> I noticed that the list of choice, after the selection of the second >> map, go back automatically on the first map. It 'right this behavior? >> However, it is already a good step in configuring the plugin. >> >> Thanks, Alberto >> >> 2009/4/25 Armin Burger <[email protected]>: >>> >>> Alberto >>> >>> I updated the plugin so it should now work correctly with pm 4. See the >>> readme file included in the plugin dir for how to configure it. >>> >>> armin >>> >>> On 22/04/2009 10:54, Alberto Poggi wrote: >>>> >>>> Hi Armin, >>>> thanks for the reply but I have not yet managed to bring up the menu >>>> mapselect. >>>> I am sorry but I am not an expert in php and xml >>>> I did not understand if the file to edit is the map.phtml or if there >>>> are other files to edit >>>> >>>> I would like to see the menu "mapselect" in "uiLayoutWest" which is now >>>> empty. >>>> >>>> I added the php function in this section of the file map.phtml: >>>> >>>> >>>> /** Some components to be added to UI */ >>>> $('#uiLayoutCenter').toolBar(PM.buttonsDefault); // ToolBar, >>>> REQUIRED >>>> $('#uiLayoutNorth').toolLink(PM.linksDefault); // Tool links >>>> $('#uiLayoutCenter').appendElement('div').addClass('map-top-bar'); >>>> // Top bar over map >>>> $('#uiLayoutWest').append($('<div/>').id('mapSelectContainer')); >>>> }); >>>> >>>> then I added the "id =" mapSelectContainer "<div />" on this section >>>> of the file map.phtml: >>>> >>>> <div class="ui-layout-west" id="uiLayoutWest"> >>>> <div id="mapSelectContainer"></div> >>>> <div id="legend"></div> >>>> >>>> </div> >>>> >>>> But I do not yet appear on the menu. What's wrong? >>>> >>>> Thanks. >>>> >>>> >>>> >>>> >>>> >>>> 2009/4/21 Armin Burger <[email protected]>: >>>>> >>>>> On 21/04/2009 15:15, Alberto Poggi wrote: >>>>>> >>>>>> Hi to all, >>>>>> >>>>>> I have tried to use the plugin "mapselect" in Pmapper version 4.0 beta >>>>>> 1 but I can not see the menu of available maps. I've tried this plugin >>>>>> in version 3.2 and it works very well. >>>>>> I think the problem is in the file map.phtml because the <div id = >>>>>> "mapSelectContainer" is not defined in this file . The syntax of >>>>>> version 3.2 is not usable in version 4.0 and I can not reproduce the >>>>>> correct syntax. >>>>>> Someone can help me solve this problem? >>>>>> >>>>>> Thank you >>>>>> >>>>>> Alberto Poggi >>>>> >>>>> Just add the <div id="mapSelectContainer" /> at the place where you >>>>> want >>>>> it, >>>>> either creating you custom PHP function to write the HTML, with static >>>>> HTML, >>>>> or - most flexible - with Javascript. The latter e.g. adding a line to >>>>> one >>>>> of the sections >>>>> >>>>> $(document).ready(function() { >>>>> ... >>>>> }); >>>>> >>>>> like >>>>> >>>>> >>>>> >>>>> $('#idOfTheDivWhereToPlaceIt').append($('<div/>').id('mapSelectContainer')); >>>>> >>>>> armin >>>>> >>>> >>>> >>> >> > >
------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ pmapper-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pmapper-users
