maplibre-react-native icon indicating copy to clipboard operation
maplibre-react-native copied to clipboard

Attribution control is oddly positioned on Android

Open ianthetechie opened this issue 2 years ago • 2 comments

Steps to Trigger Behavior

  1. Create a full-screen map view, as in the Getting Started example
  2. Launch on Android

Link to Minimal Reproducible Example

Either follow the Getting Started guide, or run the bundled examples.

Expected Behavior

Attribution button shows up in the lower right corner

Actual Behavior

It is approximately 2/3 of the way to the left side of the screen

Screenshots (if applicable)

Screenshot_1673690758

Version(s) affected

  • Platform: Android
  • OS version: API 30
  • Device type: Pixel
  • Emulator/ Simulator: Yes
  • Development OS: macOS Ventura 13.1
  • maplibre-react-native Version 9.0.0
  • MapLibre GL version 9.6.0
  • React Native Version 0.68.0 and 0.71.0 tested (probably affects all)

Additional context

This might be an upstream issue; check that with a minimal example before digging too deep.

ianthetechie avatar Jan 14 '23 10:01 ianthetechie

Yes, weird! Anyways, I ended up using attributionPosition prop in the MapVIew. Eg.

<MapLibreGL.MapView
  {...otherProps}
  attributionPosition={{ right: 10, bottom: 10 }}
/>

saheem128 avatar Feb 18 '23 21:02 saheem128

The offset is there, when there is no logo and the default placement is used.

No Logo Logo
Image Image

Not sure, which way we should go, maybe enable the logo by default?

KiwiKilian avatar Nov 21 '24 07:11 KiwiKilian