[Cartoweb-dev] Re: [Cartoweb-users] mapOverlay

Frédéric Junod frederic.junod at camptocamp.com
Mon Jun 18 10:46:21 EDT 2007


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

> Hi Fréd
> 
> Does it mean that i can use the mapOverlay plugin in my project and
> add the code in the ServerMapOverlay.php File? Do I have to write a
> new method to add the code or where do I have to put it?

No, you need to write a new one. 

The mapOverlay plugin is just a library that you can use in your own
plugin: don't touch the code ...

Sorry if I was unclear.

fréd

PS: please reply to the list (cartoweb-dev at lists.maptools.org) so other
users can read it

> 
> Regards,
> Christoph
> 
> -----Ursprüngliche Nachricht-----
> Von: Frédéric Junod [mailto:frederic.junod at camptocamp.com] 
> Gesendet: Montag, 18. Juni 2007 15:55
> An: Lauber Christoph
> Cc: cartoweb-users at lists.maptools.org
> Betreff: Re: [Cartoweb-users] mapOverlay
> 
> 
> 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-dev mailing list