Taħriġ
Modulu
Getting started with 3D object interaction - Training
This course will provide steps and procedures to follow on how to manipulate and interact with 3D objects.
Dan il-brawżer m'għadux appoġġjat.
Aġġorna għal Microsoft Edge biex tieħu vantaġġ mill-aħħar karatteristiċi, aġġornamenti tas-sigurtà, u appoġġ tekniku.
This article outlines all the different ways to draw and edit shapes using a mouse, touch screen, or keyboard shortcuts.
The drawing manager supports three different ways of interacting with the map, to draw shapes.
click
- Coordinates are added when the mouse or touch is clicked.freehand
- Coordinates are added when the mouse or touch is dragged on the map.hybrid
- Coordinates are added when the mouse or touch is clicked or dragged.Before any shape can be drawn, set the drawingMode
option of the drawing manager to a supported drawing setting. This setting can be programmed, or invoked by pressing one of the drawing buttons on the toolbar. The drawing mode stays enabled, even after a shape has been drawn, making it easy to draw more shapes of the same type. Programmatically set the drawing mode to an idle state. Or, switch to an idle state by selecting the current drawing modes button on the toolbar.
The next sections outline all the different ways that shapes can be drawn on the map.
When the drawing manager is in draw-point
drawing mode, the following actions can be done to draw points on the map. These methods work with all interaction modes.
Start drawing
F
key, and a point is added at the coordinate of the mouse pointer. This method provides higher accuracy for adding a point to the map. There's less movement on the mouse due to the pressing motion of the left mouse button.F
to add more points to the map.Finish drawing
C
key.Cancel drawing
Escape
key.When the drawing manager is in draw-line
mode, the following actions can be done to draw points on the map, depending on the interaction mode.
Start drawing
F
key, and a point is added at the coordinate of the mouse pointer. This method provides higher accuracy for adding a point to the map. There's less movement on the mouse due to the pressing motion of the left mouse button.freehandInterval
option defines the frequency at which coordinates are added.Finish drawing
C
key.Cancel drawing
Escape
key.When the drawing manager is in draw-polygon
mode, the following actions can be done to draw points on the map, depending on the interaction mode.
Start drawing
F
key, and a point is added at the coordinate of the mouse pointer. This method provides higher accuracy for adding a point to the map. There's less movement on the mouse due to the pressing motion of the left mouse button.freehandInterval
option defines the frequency at which coordinates are added.Finish drawing
C
key.Cancel drawing
Escape
key.When the drawing manager is in draw-rectangle
mode, the following actions can be done to draw points on the map, depending on the interaction mode. The generated shape follows the extended GeoJSON specification for rectangles.
Start drawing
Finish drawing
C
key.Cancel drawing
Escape
key.When the drawing manager is in draw-circle
mode, the following actions can be done to draw points on the map, depending on the interaction mode. The generated shape follows the extended GeoJSON specification for circles.
Start drawing
Finish drawing
C
key.Cancel drawing
Escape
key.The drawing tools support keyboard shortcuts. These keyboard shortcuts are functional when the map is in focus.
Key | Action |
---|---|
C |
Completes any drawing that is in progress and sets the drawing mode to idle. Focus moves to top-level map element. |
Escape |
Cancels any drawing that is in progress and sets the drawing mode to idle. Focus moves to top-level map element. |
F |
Adds a coordinate to a point, line, or polygon if the mouse is over the map. Equivalent action of clicking the map when in click or hybrid mode. This shortcut allows for more precise and faster drawings. You can use one hand to position the mouse and other to press the button without moving the mouse from the press gesture. |
Delete or Backspace |
If shapes are selected while the edit mode, delete them. |
Learn more about the classes in the drawing tools module:
Taħriġ
Modulu
Getting started with 3D object interaction - Training
This course will provide steps and procedures to follow on how to manipulate and interact with 3D objects.
Dokumentazzjoni
This article demonstrates how to add a drawing toolbar to a map using Microsoft Azure Maps Web SDK
Add drawing tools toolbar to map
How to add a drawing toolbar to a map using Azure Maps Web SDK
Get data from shapes on a map - Microsoft Azure Maps
In this article learn, how to get shape data drawn on a map using the Microsoft Azure Maps Web SDK.
Drawing tools module - Microsoft Azure Maps
This article describes how to set drawing options data using the Microsoft Azure Maps Web SDK