ShapeLayer Methods show/hide

Last post 6/30/2009 10:05:04 PM by Chris Pietschmann. 1 replies. << Back to Web.Maps.VE v2.0 General
6/26/2009 8:23:47 AM
patrick.sender

ShapeLayer Methods show/hide

Hi,
is it correct, that a shapeLayer doesn't have methods like show() or hide()?
The only way is to delete the shapeLayer?


6/30/2009 10:05:04 PM
Chris Pietschmann

Re:ShapeLayer Methods show/hide

To Hide and Show specific Shape Layers all you need to do is set it's Visible property. Like the following:

// Hide Layer
Map1.Layers[0].Visible = false;

// Show Layer
Map1.Layers[0].Visible = true;