A map is a collection of layers that display data on the map control. See, Map for more information.
This topic illustrates how to add, remove and change order of layers. It also shows how to add interactive navigational feature to map layer elements.
To add a map layer
To add a map layer from the design surface
- From the Visual Studio toolbox, drag and drop a Map control onto the .
- In the Select a Map Template wizard that appears, select a map template.
- Click the Map until the map panes appear.
- Right click inside the area labeled "Right click to add the new layer." and select the map layer you want to use.
To add a map layer using the LayerDesigner Collection Editor
- From the Visual Studio toolbox, drag and drop a Map control onto the .
- In the Select a Map Template wizard that appears, select a map template.
- With the Map control selected, go to the Properties window, click the Layers (Collection) property and then click the ellipsis button that appears.
- In the LayerDesigner Collection Editor that appears, use the Add combo-box to view the list of available layers and select the map layer you want to use.
To delete a map layer
To delete a map layer from the design surface
- On the , click the map until the map panes appear.
- In the , right click the layer you want to remove and select Delete.
To delete a map layer using the LayerDesigner Collection Editor
- On the , with the Map control selected, go to the Properties window, click the Layers (Collection) property and then click the ellipsis button that appears.
- In the LayerDesigner Collection Editor that appears, under the members list, select the map layer you want to delete and click the Remove button.
To change order of layers
Map layers are rendered from left to right in the order that they appear in the map panes. In the image below, the polygon layer is drawn first and the line layer is rendered last. Layers that are rendered later might hide map elements on layers that are rendered earlier. You can change rendering order of layers added to the map control using the LayerDesigner Collection Editor. Follow these to steps learn re-ordering the layers on a map.
- On the , with the Map control selected, go to the Properties window.
- In the Properties Window, click the Layers (Collection) property and then click the ellipsis button that appears.
- In the LayerDesigner Collection Editor that appears, under the members list, select the map layer you want to reorder and use the up or down arrow to change the rendering order of each layer.
- Click OK to close the Collection Editor.
To embed layer spatial data or tiles in a map
When you embed map elements or map tiles in a report, the spatial data is stored in the report definition.
- Click the map until the map panes appear.
- In the , right click the added layer that contains spatial data, select Embed Spatial Data and then select All Spatial Data or Currently Visible Data. In case of Tile layer select Embed Tiles.
Note: All Spatial Data refers to all the spatial data fields, while Currently Visible Data refers to the spatial data field that is set in the Field property.
To add Hyperlinks, Bookmarks and drill-through links
Map layer elements like point, polygon and line provides you a functionality to set interactive navigational features like a bookmark link to jump to other areas in the same report, a hyperlink to jump to a Web address, or a drill-through link to jump to another report. Follow these steps to learn adding hyperlinks, bookmarks and drill-through links to a layer element:
- On the , click the map until the map panes appear.
- In the , right click the layer in use and select Edit.
- In the selected layer's dialog that appears, go to the Navigation page.
- On the Navigation page, select from the following actions to perform when a user clicks a data layer element :
- None: The default behavior to indicate that the item has no action.
- Jump to report: For drill-through reporting, select this option and provide the name of a local report, the relative path of a report in another folder, or the full path of a report on another server.
-
- Parameters: Supply parameters to the targeted report by entering the Name of each parameter, the Value to send to the targeted report, or whether to Omit the parameter. Note that parameter names you supply must exactly match parameters in the target report. You can remove or change the order of parameters using the X and arrow buttons.
For detailed steps on adding a drill-through link, see Set a Drill-Through Link.
-
Jump to bookmark: Select this option and provide a valid Bookmark ID to allow the user to jump to another report control with the same Bookmark ID.
For more information on adding bookmarks, see Add Bookmarks.
-
Jump to URL: Select this option and provide a valid URL to create a hyperlink to a Web page.
For more information on adding hyperlinks, see Add Hyperlinks.
- Click OK to close the dialog.
See Also