[Cartoweb-users] display a popup containing information on attributes

Alexandre Saunier alexandre.saunier at camptocamp.com
Fri Sep 23 12:05:53 EDT 2005


Hello,

in case you use CW in directAccess=true mode, perhaps you could try (not 
tested):

require_once 'some_needed_files.php';
$cartoserver = new Cartoserver;
$mapObj = $cartoserver->getServerContext('your_mapid')->getMapObj();

See server/Cartoserver.php and server/ServerContext.php.

AS

aallain at ensg.ign.fr a écrit :
> Hello, 
> 
> I am working on Cartoweb and have a few problems with it. Help needed! 
> 
> I am trying to display information on a particular attribute of a query
> selection. For that, I have created a hypertext link on the attributes displayed
> in Cartoweb query result table. When I click on it, I want to display
> information in a popup, which needs to consult the mapfile. Therefore, I search
> how to access the msMapObj of the ServerContext object but I don’t manage to do it. 
> 
> Can I access it with a php script ? Do I have to create a plugin ? if it’s the
> case, how can I do the link between the attribute hypertext link and the content
> of my popup ? 
> 
> Besides, I would like to know how a query selection treatment is launched when
> the user has made a rectangle selection. 
> 
> Thanks
> 
>  
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users


More information about the Cartoweb-users mailing list