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
>



-- 
Alberto Poggi

Sfera S.r.l. - Servizi cartografici per la gestione del territorio
S.s. 35 dei Giovi, 42 - 15057 - Tortona (AL)
Tel.: 0131872756  -  Fax:0131872763

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to