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
title: Accessibility in Blazor Maps Component | Syncfusion
4
-
description: Checkout and learn here all about accessibility in Syncfusion Blazor Maps component and much more details.
4
+
description: Check out and learn here all about accessibility in the Syncfusion Blazor Maps component and much more details.
5
5
platform: Blazor
6
6
control: Maps
7
7
documentation: ug
8
8
---
9
9
10
10
# Accessibility in Blazor Maps Component
11
11
12
-
The [Blazor Maps](https://www.syncfusion.com/blazor-components/blazor-map) component follows commonly used accessibility guidelines and standards, such as [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles).
12
+
The [Blazor Maps](https://www.syncfusion.com/blazor-components/blazor-map) component adheres to widely adopted accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/), and [WAI-ARIA roles](https://www.w3.org/TR/wai-aria/#roles).
13
13
14
-
The accessibility compliance for the Blazor Maps component is outlined below.
14
+
The accessibility compliance for the Blazor Maps component is summarized below.
15
15
16
16
| Accessibility Criteria | Compatibility |
17
17
| -- | -- |
@@ -21,7 +21,7 @@ The accessibility compliance for the Blazor Maps component is outlined below.
21
21
|[Right-To-Left Support](../common/accessibility)| Not Applicable |
@@ -39,50 +39,50 @@ The accessibility compliance for the Blazor Maps component is outlined below.
39
39
40
40
## WAI-ARIA attributes
41
41
42
-
To meet accessibility standards, the Blazor Maps component follows to the [WAI-ARIA](https://www.w3.org/WAI/ARIA/apg/patterns/) patterns. In the Maps component, the following `WAI-ARIA` attributes are used:
42
+
To meet accessibility standards, the Blazor Maps component adheres to [WAI-ARIA](https://www.w3.org/WAI/ARIA/apg/patterns/) patterns. The following `WAI-ARIA` attributes are used in the Maps component:
43
43
44
44
| Attributes | Purpose |
45
45
| --- | --- |
46
-
|`role=region`|It specifies the Maps areas that do not support interactive functions like selection and highlight. |
47
-
|`role=button`|It specifies the Maps areas where interactive functions such as selection and highlight are available. |
48
-
|`aria-label`| Provides an accessible name for Maps elements such as geometric map shapes, title, subtitle, legend title, legend item labels, data labels, and so on. To learn more, see the next topic. |
46
+
|`role=region`|Identifies map areas that do not support interactive functions such as selection and highlighting. |
47
+
|`role=button`|Identifies map areas where interactive functions such as selection and highlighting are available. |
48
+
|`aria-label`| Provides accessible names for map elements including geometric shapes, title, subtitle, legend title, legend item labels, and data labels. See the next section for details. |
49
49
50
50
## Screen reading in Maps
51
51
52
-
Accessibility in the Blazor Maps component ensures that all users, regardless of ability or disability, can use screen reading. The following Map elements will be read aloud using screen reading software, such as Narrator for Windows.
52
+
Accessibility in the Blazor Maps component ensures compatibility with screen readers. The following map elements are announced by screen readers such as Narrator on Windows.
53
53
54
54
| Elements | Description |
55
55
| --- | --- |
56
-
| Shapes in the layer |Reads the names of the geographical shapes (such as countries, states, and regions) that appear on the Maps. |
57
-
| Title |Reads the title content in the Maps. |
58
-
| Subtitle |Reads the title below the main title content in the Maps. |
59
-
| Legend title |Reads the contents of the legend's title as specified in Maps. |
60
-
| Legend item label |Reads the label of a legend item in Maps. |
61
-
| Data label |Reads the label specified for the shapes in the Maps layer. |
62
-
| Annotation |Reads the content specified in the annotation. |
63
-
| Marker template |Reads the content provided in the marker template. |
64
-
| Tooltip template |Reads the content provided in the tooltip template. |
65
-
| Data label template |Reads the content provided in the data label template. |
56
+
| Shapes in the layer |Announces the names of the geographical shapes (such as countries, states, and regions) displayed on the map. |
57
+
| Title |Announces the map title. |
58
+
| Subtitle |Announces the subtitle that appears below the main title. |
59
+
| Legend title |Announces the legend title as configured in the map. |
60
+
| Legend item label |Announces the label of each legend item. |
61
+
| Data label |Announces the label specified for shapes in the map layer. |
62
+
| Annotation |Announces the content defined in the annotation. |
63
+
| Marker template |Announces the content provided in the marker template. |
64
+
| Tooltip template |Announces the content provided in the tooltip template. |
65
+
| Data label template |Announces the content provided in the data label template. |
66
66
67
67
## Keyboard Navigation
68
68
69
-
All the Blazor Maps actions can be controlled via keyboard keys. The applicable key combinations and their relative functionalities are listed below for the appropriate UI features available in the component.
69
+
All Blazor Maps actions can be controlled using the keyboard. The following key combinations apply to the available UI interactions.
70
70
71
71
| Windows | Mac | Description|
72
72
|-----|-----|----|
73
-
|<kbd>Tab</kbd> | <kbd>Tab</kbd> |Moves to the next focusable element on the map, such as the legend or shape.|
74
-
|<kbd>Shift</kbd> + <kbd>Tab</kbd> | <kbd>⇧</kbd> + <kbd>Tab</kbd> |Moves to the previous focusable element on the map, such as the legend or shape.|
75
-
|<kbd> + </kbd> | <kbd>+</kbd> |When zooming is enabled, zoom in operation can be performed.|
76
-
|<kbd> - </kbd> | <kbd>-</kbd> |When zooming is enabled, zoom out operation can be performed.|
77
-
|<kbd>←</kbd> | <kbd>←</kbd> |When zoomed in, the map can be scrolled to the left.|
78
-
|<kbd>→</kbd> | <kbd>→</kbd> |When zoomed in, the map can be scrolled to the right.|
79
-
|<kbd>↑</kbd> | <kbd>↑</kbd> |When zoomed in, the map can be scrolled upward.|
80
-
|<kbd>↓</kbd> | <kbd>↓</kbd> |When zoomed in, the map can be scrolled downward.|
81
-
|<kbd> R </kbd> | <kbd>R</kbd> |When zooming is enabled, reset operation can be performed.|
82
-
|<kbd>Enter</kbd> | <kbd>Enter</kbd> |The page can be navigated to the next and previous states in legend. Similarly, the selection can be made while navigating over the shape.|
73
+
|<kbd>Tab</kbd> | <kbd>Tab</kbd> |Moves focus to the next focusable element on the map, such as the legend or a shape.|
74
+
|<kbd>Shift</kbd> + <kbd>Tab</kbd> | <kbd>⇧</kbd> + <kbd>Tab</kbd> |Moves focus to the previous focusable element on the map, such as the legend or a shape.|
75
+
|<kbd> + </kbd> | <kbd>+</kbd> |Performs zoom in when zooming is enabled.|
76
+
|<kbd> - </kbd> | <kbd>-</kbd> |Performs zoom out when zooming is enabled.|
77
+
|<kbd>←</kbd> | <kbd>←</kbd> |When zoomed in, scrolls the map to the left.|
78
+
|<kbd>→</kbd> | <kbd>→</kbd> |When zoomed in, scrolls the map to the right.|
79
+
|<kbd>↑</kbd> | <kbd>↑</kbd> |When zoomed in, scrolls the map upward.|
80
+
|<kbd>↓</kbd> | <kbd>↓</kbd> |When zoomed in, scrolls the map downward.|
81
+
|<kbd> R </kbd> | <kbd>R</kbd> |Performs reset when zooming is enabled.|
82
+
|<kbd>Enter</kbd> | <kbd>Enter</kbd> |Navigates through legend items and confirms selection when focusing a shape.|
83
83
84
84
## Ensuring accessibility
85
85
86
-
The Blazor Maps component's accessibility levels are ensured using an[axe-core](https://www.nuget.org/packages/Deque.AxeCore.Playwright) software tool during automated testing.
86
+
Accessibility compliance for the Blazor Maps component is validated using [axe-core](https://www.nuget.org/packages/Deque.AxeCore.Playwright) software tool during automated testing.
87
87
88
-
The accessibility compliance of the Maps component is shown in the following sample. Open the [sample](https://blazor.syncfusion.com/accessibility/maps) in a new window to evaluate the accessibility of the Maps component with accessibility tools.
88
+
The component’s accessibility compliance is demonstrated in the following sample. Open the [sample](https://blazor.syncfusion.com/accessibility/maps) in a new window to evaluate the component with accessibility tools.
Copy file name to clipboardExpand all lines: blazor/maps/annotations.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,22 @@
1
1
---
2
2
layout: post
3
3
title: Annotations in Blazor Maps Component | Syncfusion
4
-
description: Checkout and learn here all about annotations in Blazor Maps component of Syncfusion, and more details.
4
+
description: Check out and learn how to add, configure and personalize annotations in the Syncfusion Blazor Maps component.
5
5
platform: Blazor
6
6
control: Maps
7
7
documentation: ug
8
8
---
9
9
10
10
# Annotations in Blazor Maps component
11
11
12
-
Annotations are used to mark the specific area of interest in the Maps with texts, shapes, or images. Any number of annotations can be added to the Maps component.
12
+
Annotations mark areas of interest on the map using text, shapes, or images. Any number of annotations can be added to the Maps component.
13
13
14
14
## Annotation
15
15
16
-
By using the `ContentTemplate` property of [MapsAnnotation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html), text content or an HTML element can be specified to render a new HTML element in Maps.
16
+
Use the `ContentTemplate` property of [MapsAnnotation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html) to render text content or an HTML element as an annotation in Maps.
17
17
18
18
```cshtml
19
+
19
20
@using Syncfusion.Blazor.Maps
20
21
21
22
<SfMaps>
@@ -34,6 +35,7 @@ By using the `ContentTemplate` property of [MapsAnnotation](https://help.syncfus
34
35
</MapsLayer>
35
36
</MapsLayers>
36
37
</SfMaps>
38
+
37
39
```
38
40
39
41

@@ -42,9 +44,10 @@ By using the `ContentTemplate` property of [MapsAnnotation](https://help.syncfus
42
44
43
45
### Changing the z-index
44
46
45
-
The stack order of an annotation element can be changed using the[ZIndex](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html#Syncfusion_Blazor_Maps_MapsAnnotation_ZIndex) property in the[MapsAnnotation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html).
47
+
Change the stacking order of an annotation element using the[ZIndex](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html#Syncfusion_Blazor_Maps_MapsAnnotation_ZIndex) property of[MapsAnnotation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html).
46
48
47
49
```cshtml
50
+
48
51
@using Syncfusion.Blazor.Maps
49
52
50
53
<SfMaps>
@@ -63,15 +66,17 @@ The stack order of an annotation element can be changed using the [ZIndex](http
63
66
</MapsLayer>
64
67
</MapsLayers>
65
68
</SfMaps>
69
+
66
70
```
67
71
68
72

69
73
70
74
### Positioning an annotation
71
75
72
-
Annotations can be placed anywhere in the Maps by specifying percentage values to the [X](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html#Syncfusion_Blazor_Maps_MapsAnnotation_X) and [Y](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html#Syncfusion_Blazor_Maps_MapsAnnotation_Y) properties in the[MapsAnnotation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html).
76
+
Place annotations anywhere on the map by specifying percentage values for the [X](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html#Syncfusion_Blazor_Maps_MapsAnnotation_X) and [Y](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html#Syncfusion_Blazor_Maps_MapsAnnotation_Y) properties of[MapsAnnotation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html).
73
77
74
78
```cshtml
79
+
75
80
@using Syncfusion.Blazor.Maps
76
81
77
82
<SfMaps>
@@ -90,15 +95,17 @@ Annotations can be placed anywhere in the Maps by specifying percentage values t
90
95
</MapsLayer>
91
96
</MapsLayers>
92
97
</SfMaps>
98
+
93
99
```
94
100
95
101

96
102
97
103
### Alignment of an annotation
98
104
99
-
Annotations can be aligned using the [HorizontalAlignment](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html#Syncfusion_Blazor_Maps_MapsAnnotation_HorizontalAlignment) and [VerticalAlignment](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html#Syncfusion_Blazor_Maps_MapsAnnotation_VerticalAlignment) properties in the [MapsAnnotation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html). The possible values can be [**Center**](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.AnnotationAlignment.html#Syncfusion_Blazor_Maps_AnnotationAlignment_Center), [**Far**](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.AnnotationAlignment.html#Syncfusion_Blazor_Maps_AnnotationAlignment_Far), [**Near**](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.AnnotationAlignment.html#Syncfusion_Blazor_Maps_AnnotationAlignment_Near) and [**None**](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.AnnotationAlignment.html#Syncfusion_Blazor_Maps_AnnotationAlignment_None).
105
+
Align annotations using the [HorizontalAlignment](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html#Syncfusion_Blazor_Maps_MapsAnnotation_HorizontalAlignment) and [VerticalAlignment](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html#Syncfusion_Blazor_Maps_MapsAnnotation_VerticalAlignment) properties of [MapsAnnotation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html). Possible values: [Center](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.AnnotationAlignment.html#Syncfusion_Blazor_Maps_AnnotationAlignment_Center), [Far](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.AnnotationAlignment.html#Syncfusion_Blazor_Maps_AnnotationAlignment_Far), [Near](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.AnnotationAlignment.html#Syncfusion_Blazor_Maps_AnnotationAlignment_Near) and [None](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.AnnotationAlignment.html#Syncfusion_Blazor_Maps_AnnotationAlignment_None).
100
106
101
107
```cshtml
108
+
102
109
@using Syncfusion.Blazor.Maps
103
110
104
111
<SfMaps>
@@ -117,15 +124,17 @@ Annotations can be aligned using the [HorizontalAlignment](https://help.syncfusi
117
124
</MapsLayer>
118
125
</MapsLayers>
119
126
</SfMaps>
127
+
120
128
```
121
129
122
130

123
131
124
132
## Multiple Annotation
125
133
126
-
Multiple annotations can be added to the Maps by adding multiple [MapsAnnotation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html)in the[MapsAnnotations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotations.html) and customization for the annotations can be done with the [MapsAnnotation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html).
134
+
Add multiple annotations by including multiple [MapsAnnotation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html)elements within[MapsAnnotations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotations.html). Customize each annotation using the [MapsAnnotation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsAnnotation.html) properties.
127
135
128
136
```cshtml
137
+
129
138
@using Syncfusion.Blazor.Maps
130
139
131
140
<SfMaps>
@@ -151,6 +160,7 @@ Multiple annotations can be added to the Maps by adding multiple [MapsAnnotation
151
160
</MapsLayer>
152
161
</MapsLayers>
153
162
</SfMaps>
163
+
154
164
```
155
165
156
-

166
+

0 commit comments