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
>>
> 
> 
> 


------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to