View on GitHub

dotnet-eud

.NET Controls End-User Documentation

Map Editor

The Map Editor is a built-in tool that allows you to create and modify map items. You can also relocate map items on the map surface, rotate them using a rotation handle, and resize items using the sizing handles. The Map Editor’s active mode determines which actions you can perform while editing the map. Use the corresponding editor panel buttons to switch between the Default, Transform, Edit and Create modes.

Map Editor Preview

Map Editor’s Panel

The Map Editor’s panel consists of the following elements:

Map Editor Modes

The Map editor provides the following modes that define the available actions when editing a map:

Default Mode

You can only view the map in Default mode. You can use the Default Mode Button button to turn on this mode.

Transform Mode

Select the Transform Mode Button symbol to enable the Transform mode. This mode allows you to resize and rotate the selected map items using the sizing and rotation handles. You can also move map items by dragging them.

Item Transformation

Edit Mode

Use the Edit Mode Button button to enable the Edit mode. It allows you to move, add, and remove item vertices to change vector map shapes. To edit a map item in this mode, select an item to display its points and perform one of the following actions:

Action Animation Description
Moving vertices Moving Vertices Relocate a shape’s point by dragging it.
Adding vertices Adding Vertices Hover the mouse pointer over the item’s edge between two neighboring points and click where you want to insert a new vertex.
Removing vertices Removing Vertices Remove a shape’s point by double-clicking it.

Note that you can only edit the following map vector items:

Create Mode

Create mode allows you to add new items to the map. Select one of the following symbols to create map items: Add Pushpin Button Add Path Button Add Polyline Button Add Dot Button Add Ellipse Button Add Rectangle Button Add Line Button

You can add dots and pushpins by clicking on the required location. To create a complex map item, add points sequentially to form a map item. The following animation shows how to create a map path:

Map Editor Create Mode