When a map view has userInteractionEnabled=NO, the :information_source: button isn't tappable. It doesn't make much sense to have a non-tappable button, so we should hide it.
When there is no attribution button (or effectively none), we may also want to re-check for a telemetry opt-out.
/cc @1ec5 @boundsj
Instead of just hiding the button, we should switch to text-only attribution in non-interactive maps.
For the textual attribution, most of https://github.com/mapbox/mapbox-gl-native/blob/2988ca16c1bfa8f00518411d2a711113fe88d13f/platform/macos/src/MGLMapView.mm#L364-L391 and https://github.com/mapbox/mapbox-gl-native/blob/2988ca16c1bfa8f00518411d2a711113fe88d13f/platform/macos/src/MGLMapView.mm#L427-L492 should port pretty straightforwardly to iOS.
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
Most helpful comment
Instead of just hiding the button, we should switch to text-only attribution in non-interactive maps.