[Cartoweb-users] mapOverlay

Dirk Jesko ml.dje at geocontent.de
Tue Jun 19 02:10:08 EDT 2007


Hi Christoph,

I wrote a filter plugin using the map overlay. Maybe the code helps. I 
attached it. ServerFilter.php uses the LayerOverlay.

Regards,
Dirk



Lauber Christoph wrote:
> 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
>
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filterPlugin.zip
Type: application/zip
Size: 6545 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/cartoweb-users/attachments/20070619/68173e58/filterPlugin.zip


More information about the Cartoweb-users mailing list