[Cartoweb-users] Dynamic Mapfile Modification

François Prunayre fx.prunayre at oieau.fr
Fri May 19 03:21:14 EDT 2006


Hi list, one question about dynamic mapfile modification. Aim is to change
some metadata element of a layer (eg. wms_sld_url) and keep them alive for a
session ...
 
I followed the doc on Dynamic Mapfile Modification :
The standards steps to use this mechanism are:

1. Create all the needed elements and combine them together in a MapOverlay
or a LayerOverlay instance.

2. Call the updateMap() function. The function returns a MapOverlay
instance.

3. If needed, use the result instance to retrieve an index or a element
name.

Once the modification is made, the map is updated and saving the map file
(this->serverContext->getMapObj()->save('/tmp/debug.map');) is fine. But
when I zoom again, cartoweb is loading the initial mapfile and I lose my
plugin' changes. 

Do  I have to save all modifications made by my plugin in session, and apply
them every time to solve my issu ? 

Thanks for your help. 

Francois


-- 
Ce message a ete verifie par  <http://www.mailscanner.info/> MailScanner
pour des virus ou des polluriels et rien de suspect n'a ete trouve. 
 
Les donnees et renseignements contenus dans ce message sont personnels,
confidentiels et privés.Toute publication, utilisation ou diffusion, meme
partielle, doit etre autorisee. 
 
Any data and information contained in this electronic mail is personal,
confidential and private. Any total or partial publication, use or
distribution must be authorized. 

-- 
Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve.

Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.

Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060519/c0abf919/attachment.html


More information about the Cartoweb-users mailing list