[Bug]: Info button appears above Mapbox logo
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 2.9k
- Forks
- 947
- Avg merge
- 6d 37m
- Merged PRs (30d)
- 1
Description
Mapbox Version
11.16.2
React Native Version
0.81.5
Platform
iOS
@rnmapbox/maps version
10.2.10
Standalone component to reproduce
import React from 'react';
import { MapView, Camera } from '@rnmapbox/maps';
export default class BugReportExample extends React.Component {
render() {
return (
<MapView
style={{ flex: 1 }}
logoEnabled={true}
attributionEnabled={true}
logoPosition={{ bottom: 0, left: 0 }}
attributionPosition={{ bottom: 0, left: 0 }}
>
<Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
</MapView>
);
}
}
Observed behavior and steps to reproduce
Observed behavior and steps to reproduce:
Set up MapView with logoEnabled and attributionEnabled.
Set logoPosition={{ bottom: 0, left: 0 }} and attributionPosition={{ bottom: 0, left: 0 }}.
Run the app on any device.
Observed:
The info button of the attribution control renders above the logo instead of to its right. On some devices, it appears in the top-right corner of the Mapbox ornament container.
Expected behavior
Expected behavior:
The info button should render horizontally to the right of the logo, aligned properly, and consistent across all devices, screen sizes, and resolutions.
Notes / preliminary analysis
Notes / preliminary analysis:
Hardcoding offsets with left/top values does not reliably fix this issue.
The React Native wrapper seems to not fully respect logoPosition + attributionPosition when rendering the internal info button.
Additional links and references
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied @rnmapbox/maps MapView reproduction on iOS, using logoPosition and attributionPosition set to the same bottom-left location. Trace how the wrapper places the logo and attribution info button, then verify that the info button stays horizontally to the logo’s right across devices and screen sizes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100