You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-maps/drawing-package-guide.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ When preparing your facility drawing files for the Conversion service, make sure
53
53
54
54
## Step 2: Prepare the DWG files
55
55
56
-
This part of the guide will show you how to use CAD commands to ensure that your DWG files meet the requirements of the Conversion service.
56
+
This part of the guide shows you how to use CAD commands to ensure that your DWG files meet the requirements of the Conversion service.
57
57
58
58
You may choose any CAD software to open and prepare your facility drawing files. However, this guide is created using Autodesk's AutoCAD® software. Any commands referenced in this guide are meant to be executed using Autodesk's AutoCAD® software.
59
59
@@ -91,15 +91,15 @@ The following image is taken from the sample package, and shows the exterior lay
91
91
92
92
### Unit layer
93
93
94
-
Units are navigable spaces in the building, such as offices, hallways, stairs, and elevators. A closed entity type such as Polygon, closed Polyline, Circle, or closed Ellipse is required to represent each unit. So, walls and doors alone won't create a unit because there isn’t an entity that represents the unit.
94
+
Units are navigable spaces in the building, such as offices, hallways, stairs, and elevators. A closed entity type such as Polygon, closed Polyline, Circle, or closed Ellipse is required to represent each unit. So, walls and doors alone doesn't create a unit because there isn’t an entity that represents the unit.
95
95
96
96
The following image is taken from the [sample drawing package] and shows the unit label layer and unit layer in red. All other layers are turned off to help with visualization. Also, one unit is selected to help show that each unit is a closed Polyline.
97
97
98
98
:::image type="content" source="./media/drawing-package-guide/unit.png" alt-text="Screenshot showing the unit layer of a facility.":::
99
99
100
100
### Unit label layer
101
101
102
-
If you'd like to add a name property to a unit, you'll need to add a separate layer for unit labels. Labels must be provided as single-line text entities that fall inside the bounds of a unit. A corresponding unit property must be added to the manifest file where the `unitName` matches the Contents of the Text. To learn about all supported unit properties, see [`unitProperties`](#unitproperties).
102
+
If you'd like to add a name property to a unit, add a separate layer for unit labels. Labels must be provided as single-line text entities that fall inside the bounds of a unit. A corresponding unit property must be added to the manifest file where the `unitName` matches the Contents of the Text. To learn about all supported unit properties, see [`unitProperties`](#unitproperties).
103
103
104
104
### Door layer
105
105
@@ -153,7 +153,7 @@ The `georeference` object is used to specify where the facility is located geogr
153
153
154
154
### dwgLayers
155
155
156
-
The `dwgLayers` object is used to specify that DWG layer names where feature classes can be found. To receive a property converted facility, it's important to provide the correct layer names. For example, a DWG wall layer must be provided as a wall layer and not as a unit layer. The drawing can have other layers such as furniture or plumbing; but, they'll be ignored by the Azure Maps Conversion service if they're not specified in the manifest.
156
+
The `dwgLayers` object is used to specify that DWG layer names where feature classes can be found. To receive a property converted facility, it's important to provide the correct layer names. For example, a DWG wall layer must be provided as a wall layer and not as a unit layer. The drawing can have other layers such as furniture or plumbing; but, the Azure Maps Conversion service ignores them if they're not specified in the manifest.
157
157
158
158
The following example of the `dwgLayers` object in the manifest.
159
159
@@ -193,7 +193,7 @@ The `unitProperties` object allows you to define other properties for a unit tha
193
193
194
194
The following image is taken from the [sample drawing package]. It displays the unit label that's associated to the unit property in the manifest.
195
195
196
-
:::image type="content" source="./media/drawing-package-guide/unit-property.png" alt-text="Screenshot showing the unit label that will be associated to the unity property in the manifest.":::
196
+
:::image type="content" source="./media/drawing-package-guide/unit-property.png" alt-text="Screenshot showing the unit label that is associated to the unity property in the manifest.":::
197
197
198
198
The following snippet shows the unit property object that is associated with the unit.
199
199
@@ -221,7 +221,7 @@ The following snippet shows the unit property object that is associated with the
221
221
222
222
## Step 4: Prepare the Drawing Package
223
223
224
-
You should now have all the DWG drawings prepared to meet Azure Maps Conversion service requirements. A manifest file has also been created to help describe the facility. All files will need to be zipped into a single archive file, with the `.zip` extension. It's important that the manifest file is named `manifest.json` and is placed in the root directory of the zipped package. All other files can be in any directory of the zipped package if the filename includes the relative path to the manifest. For an example of a drawing package, see the [sample drawing package].
224
+
You should now have all the DWG drawings prepared to meet Azure Maps Conversion service requirements. A manifest file has also been created to help describe the facility. All files need to be zipped into a single archive file, with the `.zip` extension. It's important that the manifest file is named `manifest.json` and is placed in the root directory of the zipped package. All other files can be in any directory of the zipped package if the filename includes the relative path to the manifest. For an example of a drawing package, see the [sample drawing package].
225
225
226
226
:::zone-end
227
227
@@ -298,7 +298,7 @@ You can use the [Azure Maps Creator onboarding tool] to create new and edit exis
298
298
299
299
To process the DWG files, enter the geography of your Azure Maps Creator resource, the subscription key of your Azure Maps account and the path and filename of the DWG ZIP package, the select **Process**. This process can take several minutes to complete.
300
300
301
-
:::image type="content" source="./media/creator-indoor-maps/onboarding-tool/create-manifest.png" alt-text="Screenshot showing the create a new manifest screen of the Azure Maps Creator onboarding tool.":::
301
+
:::image type="content" source="./media/creator-indoor-maps/onboarding-tool/create-manifest.png" alt-text="Screenshot showing the 'create a new manifest' screen of the Azure Maps Creator onboarding tool.":::
302
302
303
303
### Facility levels
304
304
@@ -313,7 +313,7 @@ The following example is taken from the [sample drawing package v2]. The facilit
313
313
The `dwgLayers` object is used to specify the DWG layer names where feature classes can be found. To receive a properly converted facility, it's important to provide the correct layer names. For example, a DWG wall layer must be provided as a wall layer and not as a unit layer. The drawing can have other layers such as furniture or plumbing; but, the Azure Maps Conversion service ignores anything not specified in the manifest.
314
314
Defining text properties enables you to associate text entities that fall inside the bounds of a feature. Once defined they can be used to style and display elements on your indoor map
315
315
316
-
:::image type="content" source="./media/creator-indoor-maps/onboarding-tool/dwg-layers.png" alt-text="Screenshot showing the create a new manifest screen of the onboarding tool.":::
316
+
:::image type="content" source="./media/creator-indoor-maps/onboarding-tool/dwg-layers.png" alt-text="Screenshot showing the 'create a new manifest' screen of the onboarding tool.":::
317
317
318
318
> [!IMPORTANT]
319
319
> Wayfinding support for `Drawing Package 2.0` will be available soon. The following feature class should be defined (not case sensitive) in order to use [wayfinding]. `Wall` will be treated as an obstruction for a given path request. `Stair` and `Elevator` will be treated as level connectors to navigate across floors:
@@ -336,7 +336,7 @@ The **Anchor Point Angle** is specified in degrees between true north and the dr
336
336
337
337
You position the facility's location by entering either an address or longitude and latitude values. You can also pan the map to make minor adjustments to the facility's location.
338
338
339
-
:::image type="content" source="./media/creator-indoor-maps/onboarding-tool/georeference-location-defined.png" alt-text="Screenshot showing the georeference tab of the Azure Maps Creator onboarding tool with values entered for the longitude and latitude anchor points.":::
339
+
:::image type="content" source="./media/creator-indoor-maps/onboarding-tool/georeference-location-defined.png" alt-text="Screenshot showing the georeference tab of the Azure Maps Creator onboarding tool with values entered for longitude and latitude.":::
Copy file name to clipboardExpand all lines: articles/azure-maps/drawing-requirements.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ The [Conversion service] does the following on each DWG file:
59
59
- Walls
60
60
- Vertical penetrations
61
61
- Produces a *Facility* feature.
62
-
- Produces a minimal set of default Category features to be referenced by other features:
62
+
- Produces a minimal set of default Category features referenced by other features:
63
63
- room
64
64
- structure
65
65
- wall
@@ -69,7 +69,7 @@ The [Conversion service] does the following on each DWG file:
69
69
70
70
## DWG file requirements
71
71
72
-
A single DWG file is required for each level of the facility. All data of a single level must be contained in a single DWG file. Any external references (_xrefs_) must be bound to the parent drawing. For example, a facility with three levels will have three DWG files in the drawing package.
72
+
A single DWG file is required for each level of the facility. All data of a single level must be contained in a single DWG file. Any external references (_xrefs_) must be bound to the parent drawing. For example, a facility with three levels has three DWG files in the drawing package.
73
73
74
74
Each DWG file must adhere to the following requirements:
75
75
@@ -87,7 +87,7 @@ Each DWG layer must adhere to the following rules:
87
87
- Self-intersecting polygons are permitted, but are automatically repaired. When they repaired, the [Conversion service] raises a warning. It's advisable to manually inspect the repaired results, because they might not match the expected results.
88
88
- Each layer has a supported list of entity types. Any other entity types in a layer will be ignored. For example, text entities aren't supported on the wall layer.
89
89
90
-
The table below outlines the supported entity types and converted map features for each layer. If a layer contains unsupported entity types, then the [Conversion service] ignores those entities.
90
+
The following table outlines the supported entity types and converted map features for each layer. If a layer contains unsupported entity types, then the [Conversion service] ignores those entities.
91
91
92
92
| Layer | Entity types | Converted Features |
93
93
| :----- | :-------------------| :-------
@@ -99,13 +99,13 @@ The table below outlines the supported entity types and converted map features f
99
99
| [UnitLabel](#unitlabel-layer) | Text (single line) | Not applicable. This layer can only add properties to the unit features from the Units layer. For more information, see the [UnitLabel layer](#unitlabel-layer).
100
100
| [ZoneLabel](#zonelabel-layer) | Text (single line) | Not applicable. This layer can only add properties to zone features from the ZonesLayer. For more information, see the [ZoneLabel layer](#zonelabel-layer).
101
101
102
-
The sections below describe the requirements for each layer.
102
+
The following sections describe the requirements for each layer.
103
103
104
104
### Exterior layer
105
105
106
106
The DWG file for each level must contain a layer to define that level's perimeter. This layer is referred to as the *exterior* layer. For example, if a facility contains two levels, then it needs to have two DWG files, with an exterior layer for each file.
107
107
108
-
No matter how many entity drawings are in the exterior layer, the [resulting facility dataset](tutorial-creator-feature-stateset.md)will contain only one level feature for each DWG file. Additionally:
108
+
No matter how many entity drawings are in the exterior layer, the [resulting facility dataset](tutorial-creator-feature-stateset.md)contains only one level feature for each DWG file. Additionally:
109
109
110
110
- Exteriors must be drawn as POLYGON, POLYLINE (closed), CIRCLE, or ELLIPSE (closed).
111
111
- Exteriors may overlap, but are dissolved into one geometry.
@@ -270,7 +270,7 @@ The `unitProperties` object contains a JSON array of unit properties.
270
270
|`verticalPenetrationDirection`| string| false |If `verticalPenetrationCategory` is defined, optionally define the valid direction of travel. The permitted values are: `lowToHigh`, `highToLow`, `both`, and `closed`. The default value is `both`. The value is case-sensitive.|
271
271
|`nonPublic`| bool | false | Indicates if the unit is open to the public. |
272
272
|`isRoutable`| bool | false | When this property is set to `false`, you can't go to or through the unit. The default value is `true`. |
273
-
|`isOpenArea`| bool | false | Allows the navigating agent to enter the unit without the need for an opening attached to the unit. By default, this value is set to `true` for units with no openings, and `false` for units with openings. Manually setting `isOpenArea` to `false` on a unit with no openings results in a warning, because the resulting unit won't be reachable by a navigating agent.|
273
+
|`isOpenArea`| bool | false | Allows the navigating agent to enter the unit without the need for an opening attached to the unit. By default, this value is set to `true` for units with no openings, and `false` for units with openings. Manually setting `isOpenArea` to `false` on a unit with no openings results in a warning, because the resulting unit isn't reachable by a navigating agent.|
274
274
275
275
### `zoneProperties`
276
276
@@ -286,7 +286,7 @@ The `zoneProperties` object contains a JSON array of zone properties.
286
286
287
287
### Sample drawing package manifest
288
288
289
-
Below is the manifest file for the sample drawing package. Go to the [Sample drawing package] for Azure Maps Creator on GitHub to download the entire package.
289
+
The following is the manifest file for the sample drawing package. Go to the [Sample drawing package] for Azure Maps Creator on GitHub to download the entire package.
290
290
291
291
#### Manifest file
292
292
@@ -494,9 +494,9 @@ One or more DWG layer(s) can be mapped to a user defined feature class. One inst
494
494
495
495
Text entities that fall within the bounds of a closed shape can be associated to that feature as a property. For example, a room feature class might have text that describes the room name and another the room type [sample drawing package v2]. Additionally:
496
496
497
-
- Only TEXT and MTEXT entities will be associated to the feature as a property. All other entity types will be ignored.
497
+
- Only TEXT and MTEXT entities are associated to the feature as a property. All other entity types are ignored.
498
498
- The TEXT and MTEXT justification point must fall within the bounds of the closed shape.
499
-
- If more than one TEXT property is within the bounds of the closed shape and both are mapped to one property, one will be randomly selected.
499
+
- If more than one TEXT property is within the bounds of the closed shape and both are mapped to one property, one is randomly selected.
Copy file name to clipboardExpand all lines: articles/azure-maps/drawing-tools-events.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Drawing tool events | Microsoft Azure Maps
3
-
description: In this article you'll learn, how to add a drawing toolbar to a map using Microsoft Azure Maps Web SDK
3
+
description: This article demonstrates how to add a drawing toolbar to a map using Microsoft Azure Maps Web SDK
4
4
author: brendansco
5
5
ms.author: Brendanc
6
6
ms.date: 12/05/2019
@@ -15,8 +15,8 @@ When using drawing tools on a map, it's useful to react to certain events as the
15
15
16
16
| Event | Description |
17
17
|-------|-------------|
18
-
|`drawingchanged`| Fired when any coordinate in a shape has been added or changed. |
19
-
|`drawingchanging`| Fired when any preview coordinate for a shape is being displayed. For example, this event will fire multiple times as a coordinate is dragged. |
18
+
|`drawingchanged`| Fired when any coordinate in a shape has been added or changed. |
19
+
|`drawingchanging`| Fired when any preview coordinate for a shape is being displayed. For example, this event fires multiple times as a coordinate is dragged. |
20
20
|`drawingcomplete`| Fired when a shape has finished being drawn or taken out of edit mode. |
21
21
|`drawingerased`| Fired when a shape is erased from the drawing manager when in `erase-geometry` mode. |
22
22
|`drawingmodechanged`| Fired when the drawing mode has changed. The new drawing mode is passed into the event handler. |
@@ -65,7 +65,7 @@ This code searches for points of interests inside the area of a shape after the
65
65
66
66
### Create a measuring tool
67
67
68
-
The code below shows how the drawing events can be used to create a measuring tool. The `drawingchanging` is used to monitor the shape, as it's being drawn. As the user moves the mouse, the dimensions of the shape are calculated. The `drawingcomplete` event is used to do a final calculation on the shape after it has been drawn. The `drawingmodechanged` event is used to determine when the user is switching into a drawing mode. Also, the `drawingmodechanged` event clears the drawing canvas and clears old measurement information.
68
+
The following code shows how the drawing events can be used to create a measuring tool. The `drawingchanging` is used to monitor the shape, as it's being drawn. As the user moves the mouse, the dimensions of the shape are calculated. The `drawingcomplete` event is used to do a final calculation on the shape after it has been drawn. The `drawingmodechanged` event is used to determine when the user is switching into a drawing mode. Also, the `drawingmodechanged` event clears the drawing canvas and clears old measurement information.
69
69
70
70
<br/>
71
71
@@ -78,7 +78,7 @@ The code below shows how the drawing events can be used to create a measuring to
78
78
79
79
## Next steps
80
80
81
-
Learn how to use additional features of the drawing tools module:
81
+
Learn how to use other features of the drawing tools module:
0 commit comments