rnmapbox / rnmapbox/maps

[Bug]: Info button appears above Mapbox logo

Open
#4,183 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug 🪲
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
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.