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/map-accessibility.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
@@ -12,7 +12,7 @@ manager: cpendleton
12
12
13
13
# Building an accessible application
14
14
15
-
Upwards of 20% of internet users have a need for accessible web applications. As such, it is important to make sure your application is designed such that any user can easily use it. Rather than thinking of accessibility as a set of tasks to complete, think of it as part of your overall user experience. The more accessible your application, the more people who can use it.
15
+
Upwards of 20% of internet users have a need for accessible web applications. As such, it's important to make sure your application is designed such that any user can easily use it. Rather than thinking of accessibility as a set of tasks to complete, think of it as part of your overall user experience. The more accessible your application, the more people who can use it.
16
16
17
17
When it comes to rich interactive content like a map, some common accessibility considerations are:
18
18
- Support the screen reader for users who have difficulty seeing the web application.
@@ -80,7 +80,7 @@ The map has a number of keyboard shortcuts built in that make it easier to use t
80
80
| Minus sign, Hyphen (`-`), or <sup>*</sup>Underscore (`_`) | Zoom out |
81
81
|`Shift` + mouse drag on map to draw area | Zoom into area |
82
82
83
-
<sup>*</sup> These key shortcuts usually share the same key on a keyboard. These were added to improve the user experience, such that it doesn’t matter if the user uses the shift key or not for these shortcuts.
83
+
<sup>*</sup> These key shortcuts usually share the same key on a keyboard. These shortcuts were added to improve the user experience. It also doesn’t matter if the user uses the shift key or not for these shortcuts.
84
84
85
85
## Screen Reader support
86
86
@@ -90,9 +90,9 @@ Any additional information that is placed on the base map should have correspond
90
90
91
91
## Make popups keyboard accessible
92
92
93
-
A marker or symbol is often used to represent a location on the map. Additional information about the location is typically displayed in a popup when the user interacts with the marker. In most applications popups are displayed when a user clicks or taps a marker, however this requires the user to use a mouse or a touch screen. A good practice is to make popups accessible when using a keyboard. This can be achieved by creating a popup for each data point and adding it to the map.
93
+
A marker or symbol is often used to represent a location on the map. Additional information about the location is typically displayed in a popup when the user interacts with the marker. In most applications popups appear when a user clicks or taps a marker, however this event requires the user to use a mouse or a touch screen. A good practice is to make popups accessible when using a keyboard. This functionality can be achieved by creating a popup for each data point and adding it to the map.
94
94
95
-
The following example loads points of interests on the map using a symbol layer and adds a popup to the map for each point of interest. A reference to each popup is stored in the properties of each data point so that it can also be retrieved for a marker, such as when a marker is clicked. When focused on the map, pressing the tab key will allow the user to step through each popup on the map.
95
+
The following example loads points of interests on the map using a symbol layer and adds a popup to the map for each point of interest. A reference to each popup is stored in the properties of each data point. It can also be retrieved for a marker, such as when a marker is clicked. When focused on the map, pressing the tab key will allow the user to step through each popup on the map.
96
96
97
97
<br/>
98
98
@@ -102,12 +102,12 @@ The following example loads points of interests on the map using a symbol layer
102
102
103
103
## Additional accessibility tips
104
104
105
-
Here are some additional tips to make your webmapping application more accessible.
105
+
Here are some additional tips to make your web-mapping application more accessible.
106
106
107
-
- If displaying a lot of interactive point data on the map, consider reducing the clutter and use clustering.
107
+
- If displaying many interactive point data on the map, consider reducing the clutter and use clustering.
108
108
- Ensure color contrast ratio between text/symbols and background colors is 4.5:1 or more.
109
109
- Keep your screen reader (ARIA, alt, and title attributes) messages short, descriptive, and meaningful. Avoid unnecessary jargon and acronyms.
110
-
- Try to optimize messages sent to the screen reader to provide short meaningful information that is easy for the user to digest. For example, if you want to update the screen reader at a high frequency, such as when the map is moving, consider doing the following:
110
+
- Try to optimize messages sent to the screen reader to provide short meaningful information that is easy for the user to digest. For example, if you want to update the screen reader at a high frequency, such as when the map is moving, consider doing the following points:
111
111
- Wait until the map has finished moving to update the screen reader.
112
112
- Throttle the updates to once every few seconds.
113
113
- Combine messages together in a logical way.
@@ -116,9 +116,9 @@ Here are some additional tips to make your web mapping application more accessib
116
116
- Consider using a symbol layer with different icons for different metric categories, such as triangles, stars, and squares. The symbol layer also supports scaling the size of the icon. A text label can also be displayed.
117
117
- If displaying line data, the width can be used to represent weight or size. A dash-array pattern can be used to represent different categories of lines. A symbol layer can be used in combination with a line to overlay icons along the line. Using an arrow icon is useful for showing the flow or direction of the line.
118
118
- If displaying polygon data, a pattern, such as stripes, can be used as an alternative to color.
119
-
- Some visualizations such as heatmaps, tile layers, and image layers are not accessible for users with vision impairments. Some considerations:
119
+
- Some visualizations such as heatmaps, tile layers, and image layers aren't accessible for users with vision impairments. Some considerations:
120
120
- Have the screen reader describe what the layer is displaying when added to the map. For example, if a weather radar tile layer is displayed, have the screen reader say something like "Weather radar data overlaid on map."
121
-
- Limit the amount of functionality that requires a mouse hover. These will be inaccessible to users who are using a keyboard or touch device to interact with your application. Note, it is still a good practice to have a hover style for interactive content such as clickable icons, links, and buttons.
121
+
- Limit the amount of functionality that requires a mouse hover. These functionalities will be inaccessible to users who are using a keyboard or touch device to interact with your application. Note, it's still a good practice to have a hover style for interactive content such as clickable icons, links, and buttons.
122
122
- Try navigating your application using the keyboard. Make sure tab ordering is logical.
123
123
- If creating keyboard shortcuts, try to limit it to two keys or less.
Copy file name to clipboardExpand all lines: articles/azure-maps/map-add-bubble-layer.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,14 +13,14 @@ ms.custom: codepen
13
13
14
14
# Add a bubble layer to a map
15
15
16
-
This article shows you how you can render point data from a data source as a bubble layer on a map. Bubble layers render points as circles on the map with fixed pixel radius.
16
+
This article shows you how to render point data from a data source as a bubble layer on a map. Bubble layers render points as circles on the map with fixed pixel radius.
17
17
18
18
> [!TIP]
19
19
> Bubble layers by default will render the coordinates of all geometries in a data source. To limit the layer such that it only renders point geometry features set the `filter` property of the layer to `['==', ['geometry-type'], 'Point']` or `['any', ['==', ['geometry-type'], 'Point'], ['==', ['geometry-type'], 'MultiPoint']]` if you want to include MultiPoint features as well.
20
20
21
21
## Add a bubble layer
22
22
23
-
The following code loads an array of points into a data source and connects it to a [bubble layer](https://docs.microsoft.com/javascript/api/azure-maps-control/atlas.layer.bubblelayer?view=azure-iot-typescript-latest). The bubble layer is given options to render the radius of each bubble at five pixels, a fill color of white, a stroke color of blue, and stroke width of six pixels.
23
+
The following code loads an array of points into a data source. Then, the data points are connected to a [bubble layer](https://docs.microsoft.com/javascript/api/azure-maps-control/atlas.layer.bubblelayer?view=azure-iot-typescript-latest). The bubble layer renders the radius of each bubble with five pixels, a fill color of white, a stroke color of blue, and a stroke width of six pixels.
24
24
25
25
```javascript
26
26
//Add point locations.
@@ -95,4 +95,4 @@ See the following articles for more code samples to add to your maps:
Copy file name to clipboardExpand all lines: articles/azure-maps/map-add-controls.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,11 @@ manager: timlt
12
12
13
13
# Add controls to a map
14
14
15
-
This article shows you how to add controls to a map. You will also learn how to create a map with all controls and a [style picker](https://docs.microsoft.com/azure/azure-maps/choose-map-style).
15
+
This article shows you how to add controls to a map. You'll also learn how to create a map with all controls and a [style picker](https://docs.microsoft.com/azure/azure-maps/choose-map-style).
16
16
17
17
## Add zoom control
18
18
19
-
A zoom control adds buttons for zooming the map in and out. The following code sample creates an instance of the [ZoomControl](/javascript/api/azure-maps-control/atlas.control.zoomcontrol) class and adds it the bottom-right corner of the map.
19
+
A zoom control adds buttons for zooming the map in and out. The following code sample creates an instance of the [ZoomControl](/javascript/api/azure-maps-control/atlas.control.zoomcontrol) class, and adds it the bottom-right corner of the map.
20
20
21
21
```javascript
22
22
//Construct a zoom control and add it to the map.
@@ -34,7 +34,7 @@ Below is the complete running code sample of the above functionality.
34
34
35
35
## Add pitch control
36
36
37
-
A pitch control adds buttons for tilting the pitch to map relative to the horizon. The following code sample creates an instance of the [PitchControl](/javascript/api/azure-maps-control/atlas.control.pitchcontrol) class and adds it the top-right corner of the map.
37
+
A pitch control adds buttons for tilting the pitch to map relative to the horizon. The following code sample creates an instance of the [PitchControl](/javascript/api/azure-maps-control/atlas.control.pitchcontrol) class. It adds the PitchControl to top-right corner of the map.
38
38
39
39
```javascript
40
40
//Construct a pitch control and add it to the map.
@@ -90,7 +90,7 @@ Here is a tool to test out the various options for customizing the controls.
90
90
(<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
91
91
</iframe>
92
92
93
-
If you want to create customized navigation controls, create a class that extends from the `atlas.Control` class or create an HTML element and position it above the map div. HAve this UI control call the maps `setCamera` function to move the map.
93
+
If you want to create customized navigation controls, create a class that extends from the `atlas.Control` class or create an HTML element and position it above the map div. Have this UI control call the maps `setCamera` function to move the map.
Copy file name to clipboardExpand all lines: articles/azure-maps/map-add-custom-html.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ This article shows you how to add a custom HTML such as an image file to the map
19
19
> HTML Markers do not connect to data sources. Instead position information is added directly to the marker and the marker is added to the maps `markers` property which is a [HtmlMarkerManager](https://docs.microsoft.com/javascript/api/azure-maps-control/atlas.htmlmarkermanager?view=azure-iot-typescript-latest).
20
20
21
21
> [!IMPORTANT]
22
-
> Unlike most layers in the Azure Maps Web control which use WebGL for rendering, HTML Markers use traditional DOM elements for rendering. As such, the more HTML markers added a page, the more DOM elements there are. Performance can degrade after adding a few hundred HTML markers. For larger data sets consider either clustering your data or using a Symbol or Bubble layer.
22
+
> Unlike most layers in the Azure Maps Web control which use WebGL for rendering, HTML Markers use traditional DOM elements for rendering. As such, the more HTML markers added to a page, the more DOM elements there are. Performance can degrade after adding a few hundred HTML markers. For larger data sets consider either clustering your data or using a Symbol or Bubble layer.
23
23
24
24
## Add an HTML marker
25
25
@@ -28,7 +28,7 @@ The [HtmlMarker](https://docs.microsoft.com/javascript/api/azure-maps-control/at
28
28
The following code creates an HTML marker, and sets the color property to "DodgerBlue" and the text property to "10". A popup is attached to the marker and `click` event is used to toggle the visibility of the popup.
29
29
30
30
```javascript
31
-
//Create a HTML marker and add it to the map.
31
+
//Create an HTML marker and add it to the map.
32
32
var marker =newatlas.HtmlMarker({
33
33
color:'DodgerBlue',
34
34
text:'10',
@@ -115,4 +115,4 @@ For more code examples to add to your maps, see the following articles:
Copy file name to clipboardExpand all lines: articles/azure-maps/map-add-drawing-toolbar.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Below is the complete running code sample of the functionality above:
65
65
66
66
## Change drawing rendering style
67
67
68
-
The following code gets the rendering layers from the drawing manager and modifies their options to change rendering style for drawing. In this case, points will be rendered with a blue marker icon, lines will be red and four pixels wide, polygons will have a green fill color and an orange outline.
68
+
The following code gets the rendering layers from the drawing manager and modifies their options to change rendering style for drawing. In this case, points will be rendered with a blue marker icon. Lines will be red and four pixels wide. Polygons will have a green fill color and an orange outline.
69
69
70
70
```Javascript
71
71
var layers =drawingManager.getLayers();
@@ -118,4 +118,4 @@ Learn more about the classes and methods used in this article:
0 commit comments