Work with Shape Layers of Virtual Earth
While working with the shapes on the map the most challenging thing is that how regular you control and handle the shapes in a collection. In Virtual Earth application, you can collect shapes in to shapes layer. Each layer in the virtual Earth offers the users a method for removing shapes, accessing shapes and removing the shapes inside the layer itself. Every layer also offers the controls for hiding and showing the whole layer. The greatest part is that the shape layer is a container for all types of shapes and you can collect any of the polygons, polylines and pushpins in the same layer and can work on it as a solo collection.
Before starting with the shape layers for the first time always first start with basic Virtual Earth maps. First, you have to load a page in a browser where you will get to view the map of United States along with the basic Virtual Earth direction-finding dashboard. Second thing is collecting shapes in the layer and for this; you have to add a shape in the Virtual Earth map with the help of AddShape technique. By doing this you are already started working on a shape layer and Virtual Earth includes hidden shape layer that is always noticeable or built in default. If you want to form your own layers then you need to create an example of Virtual Earth shape layer. Then you can add your shapes and you can do it by adding it to the map with the help of map.AddShapeLayer.
Next step is to control the shape layer and you have to begin working with the properties of the layer itself rather than the partly shapes. In this the first two part with which you have to work are description and layer title. These properties give two suitable locations where you can store information about the layer itself. In an example, you can put the layer title to Colorado or any suitable sequence of HTML. Likewise, you can put the description field to any content or HTML that you select. These two layers are important as they help to find a specific layer in a map.
You can easily find a layer inside a map with the help of a pointer to your interest you can simply display or even hide the layer. In order to show a hide the layer you can get the bounding box for every of the shapes that is included in the layer. This is specifically very helpful for rearranging a map view to zoom in as probably to the things in a layer. Every time you might require deleting few or every shapes from a layer. Luckily, Virtual Earth feature provides various choices and first is that you can simply delete the files with the help of DeleteAllShapes command. If you need to delete shapes one by one for that you need an item that indicates the shape. You might not have that handy object you can use the GetShapeIndex way in order to find out you shape. Shape layers offers fast and simple method to arrange shapes. You cal also put any combination of lines, polygons and points into a layer and then make the layer noticeable or hide it with the help of a single command.
Tags: Microsoft Virtual Earth
Tags: Microsoft Virtual Earth
























