[Chameleon] Changing class expression

Francesco Palermo francesco.palermo-mail at poste.it
Sun Sep 18 13:48:21 EDT 2005


Hello list,

i would like to modify the class expression of some layers of my map but i 
don't know how i can get this control on the layer.
i understood that the map is accessible trough the oMapsession object and 
further by the embedded objects.
so, is there any way to change the class expression and to reload the map?

my code that is in an iframe is:
---
[...]
// Setting the class expression
	$baseLayer = $oMapSession->oMap->getLayer(0);
	$baseLayer -> set ("status",MS_OFF);
	$class = $baseLayer->getClass(0);
	$class -> setexpression('374');
[...]

// reloading the map through a button  
<input type="button" value="Invia" 
onclick="parent.window.document.forms[0].submit()";
---

i'm sorry but i'm a newbie ;))

thank you


-- 
Francesco Palermo


More information about the Chameleon mailing list