User Tools

Site Tools


map_suite_android_drawing_editing

Map Suite Android Drawing & Editing

Video Overview

Drawing & Editing
Drawing & Editing(Xamarin Forms)

Overview

The drawing and editing tools of the Map Suite Android Edition allow users to draw a variety of new shapes on the map and to edit existing features. For example, a user may want to trace the outlines of buildings or other objects from aerial imagery to create and save new polygon features in vector format. Creating vector features from imagery converts them from colored pixels embedded in a grid to discrete, individual features that can then be queried and analyzed with mapping software.

At the bottom of the screen in the Instruction panel, you'll see a set of tools. The hand tool is used to pan and zoom the map. The pencil opens the drawing tools menu. The box is the edit tool. The trash can deletes all shapes on the screen.

Drawing Tools

Tap the pencil icon to open the set of tools for drawing features. You can use these tools to draw points, lines, rectangles, polygons, or ellipses. To do this, simply tap the tool, then tap the location on the map where you'd like to begin drawing. For a point, simply tap on the map. In the case of the line and polygon tools, tap the location of the next vertex (without dragging), and so on, then tap and hold the location of the last vertex. For a rectangle or ellipse, tap and drag on the map.

Tap the hand icon to return to the main Instruction screen.

Edit Tool

Select the box icon, which is the edit tool. The features will have tiny white circles around their edges. This confirms that edit mode has been entered. The white circles are the vertices on which the shape is based. Move these vertices to adjust a feature's shape. On a line or polygon feature, it is also possible to tap on the line or border of the shape to add a new point.

In the middle of each shape is a move icon that can be tapped and held to move the shape. To the bottom-left of each shape is an icon that can be tapped and held to resize the shape. To the bottom-right of each shape is an icon that can be tapped and held to rotate the shape.

Delete Tool

Use the trash can tool to delete all shapes entirely.

A Look at the Code

MainActivity.cs is the MainLauncher, which will load when the application is opened. It contains OnCreate, which sets up the map and buttons, and calls InitializeInstruction to set up the toolbar. TrackButtonClick handles the drawing and editing of each of the shapes.

map_suite_android_drawing_editing.txt · Last modified: 2016/01/12 05:51 by tgwikiupdate