4
votes

I'm trying to get accessibility working on my markers/items/cluster using Google Maps SDK in iOS (Swift 3.0, XCode 8.1).

The accessibility inspector shows the "Traits" as "Button" but when highlighted, it actually shows the proper label (see screenshots).

Marker NOT clicked/highlighted

Marker clicked/highlighted

I'm trying to add code on the marker, cluster item, marker icon and even the marker iconView:

marker.accessibilityLabel = "marker Accessibility label"
marker.icon.accessibilityLabel = "marker icon accessibility label"

Along with setting "isAccessibilityElement" to true.

Does anyone have any experience getting Google Maps to be Accessible on iOS?

Thanks!

1

1 Answers

4
votes

You need to enable accessibility for GMSMapView object.

mapsView.accessibilityElementsHidden = false

Refer :-

https://developers.google.com/maps/documentation/ios-sdk/map

Section - Accessibility