[Cartoweb-users] mapOverlay

Frédéric Junod frederic.junod at camptocamp.com
Mon Jun 18 09:54:57 EDT 2007


Hi Christoph,

You need the write your code in a new plugin or re-use an existent
plugin in your project.

All the code have to be in the server part.

Regards,

fréd



Le Mon, 18 Jun 2007 15:27:40 +0200,
"Lauber Christoph" <ch.lauber at geo-thun.ch> a écrit :

> Hi all
> 
> I would like to use the mapOverlay plugin to use the filter data with
> LayerOverlay(). But I get some starting problems. Where do I have to
> add the following code (like in the documentation example)?. Directly
> in a mapOverlay plugin file or do I have to write my own plugin where
> I call these functions?
> 
> $layer = new LayerOverlay();
> $layer->name = "lk_wasser";
> $layer->data = "geom FROM (SELECT geom, objid FROM lk_wasser WHERE
> user_id = {$user}) " .
>                "AS foo USING UNIQUE objid USING SRID=-1";
> $mapOverlay = $this->serverContext->getPluginManager()->mapOverlay;
> $mapOverlay->updateMap($layer);
> 
> Thanks for hints.
> 
>  
> Christoph Lauber
> 
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users


-- 
Frédéric Junod
Camptocamp SA



More information about the Cartoweb-users mailing list