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 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 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.
_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to