[mapguide-users] Changing existing dynamic layer's Filter onthe fly

Maksim Sestic max at geoinova.com
Sat Nov 17 05:20:01 EST 2007




Kenneth, Jonio,

On the other hand, I was always thinking of using SetLayerDefinition() for
this purpose. It clearly (?) states that it should change layer definition
within a session repository:

//////////////////////////////////////////////////////////////
// Sets the layer definition for this layer.
// This method can be used to alter the definition of a layer, including the
layers
// data source definition or stylization rules. For example to change the
Filter
// used to retrieve features on a FeatureLayer, the old definition can be
retrieved, altered,
// and stored in the session repository. Then the SetLayerDefinition method
can be called
// with the ResourceId of the altered layer definition in the session
repository
//
void MgLayerBase::SetLayerDefinition(MgResourceIdentifier* layerDefinition,
MgResourceService* resourceService)


Regards,
Maksim Sestic
-- 
View this message in context: http://www.nabble.com/Changing-existing-dynamic-layer%27s-Filter-on-the-fly-tf4811727s16610.html#a13807654
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list