News:

GinGly.com - Used by 85,000 Members - SMS Backed up 7,35,000 - Contacts Stored  28,850 !!

Main Menu

Find a Layer within a Map

Started by thiruvasagamani, Jan 23, 2009, 06:29 PM

Previous topic - Next topic

thiruvasagamani

Find a Layer within a Map

Once you have a pointer to your layer of interest, you can easily show or hide the layer:
Copy Code

//Show the layer
layer.Show();
//Hide the layer
layer.Hide();

Listing 4: Show or Hide a layer

You can also find the bounding box for all of the shapes contained in the layer. This is particularly useful for resetting a map view to zoom in as close as possible to the objects in a layer:
Copy Code

var layer = FindLayer('Colorado');
map.SetMapView(layer.GetBoundingRectangle());

Source : MSDN
Thiruvasakamani Karnan