nijkampr

Dynamiclayer Visibility of sublayers doesn't change without movement

Discussion created by nijkampr on Jun 6, 2011
Latest reply on Jul 26, 2011 by nijkampr
Hi,

I'm using a dynamiclayer with a bunch of sublayers.
When i change the visibillity of the sublayers (through the self.dynamicLayer.visibleLayers variable) the mapview (and thereby the dynamiclayer) doesnt change. The selected or deselected objects arent (dis)appearing, not even when the dynamiclayer datachanged method is called.
Only when the map is moved the data changed (due reload of the data)...

Is this wanted behaviour? It's kinda annoying that it doesnt change on the datachanged call...

For now i implemented a work-around:    
[self.mapView zoomToEnvelope:self.mapView.envelope animated:true];


Many thanks.

Outcomes