Hi,

The 2 plugins here http://svn.pmapper.net/trac/wiki/PluginsDynamicData 
add dynamical layers on pmapper 4. They use json layer description.

Else you can do it using PHP like you described it in your message, but 
it requires more development skills. Do you add your layer name in 
$_SESSION['groups'] ?


Le 18/11/2010 16:08, Rafael Rend a écrit :
>   Hello,
>
>   Someone has an example code to add dynamical layer on pmapper-4.0 ?.
>
>   I whould like to know, if exists an appropriate solution to do it.
>
>   ->  I have tried:
>         (file: map.phtml )
>
>        $layer = ms_newLayerObj($map);
>
>            ( another lines to config layer, classes and styles )..
>
>     //continuation
>         require_once("$PM_INCPHP/init/initmap.php");
>        (..... rest of map.phtml file )
>
>     ... But, when I try use it, the map screen show me totally blank.
> No information appear to me, and no erros in error.log file.
>
>
>        ->Also, I've tried to use DynLayer    [ file:
> incphp/map/dynlayer.php ]. But I don't know if this class allready
> have worked before. On documentation We just see: " Not yet
> documented...  " (
> http://svn.pmapper.net/trac/wiki/PluginsLayersManagement  )
>
>
>        I have searched about DynLayer, but not found an working
> example. Only this message:
> http://old.nabble.com/How-to-use-DynLayer--td28670771.html, about
> another user trying,  without success, use it.
>
>      Someone has had success adding dynamical layer on pmapper-4 ?.
>
>   Thanks.
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2&  L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
>
>
>
>

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to