Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: attributionEnabled, zoomEnabled, ... and other props are not working anymore [Ornaments not working] #3733

Open
JB-CHAUVIN opened this issue Jan 2, 2025 · 2 comments
Labels
bug 🪲 Something isn't working

Comments

@JB-CHAUVIN
Copy link

JB-CHAUVIN commented Jan 2, 2025

Mapbox Implementation

Mapbox

Mapbox Version

default

React Native Version

0.76.3

Platform

iOS

@rnmapbox/maps version

10.1.33

Standalone component to reproduce

import React from 'react';
import MapBox from "@rnmapbox/maps";
import { View } from "react-native";

export default function ZeroScreen() {
  return (
    <View style={{ flex: 1 }}>
      <MapBox.MapView
        style={{ flex: 1 }}
        attributionEnabled={false}
        compassEnabled={false}
        logoEnabled={false}
        scrollEnabled={false}
        zoomEnabled={false}
        pitchEnabled={false}
      ></MapBox.MapView>
    </View>
  );
}

Observed behavior and steps to reproduce

iScreen Shoter - 20250102084829248

Expected behavior

With the following code, many props like :

  • attributionEnabled
  • zoomEnabled
    ...

Are ignored (not working...)

Notes / preliminary analysis

It used to work few weeks ago.
I tried downgrading the lib version but it's still not working.

Additional links and references

No response

@JB-CHAUVIN JB-CHAUVIN added the bug 🪲 Something isn't working label Jan 2, 2025
@github-actions github-actions bot closed this as completed Jan 2, 2025
@github-actions github-actions bot reopened this Jan 2, 2025
@JB-CHAUVIN JB-CHAUVIN changed the title [Bug]: attributionEnabled, zoomEnabled, ... and other props are not working anymore [Bug]: attributionEnabled, zoomEnabled, ... and other props are not working anymore [Ornaments not working] Jan 2, 2025
@JB-CHAUVIN
Copy link
Author

I think other props are not working too :

  • compassEnabled : KO
  • logoEnabled : KO

But some others are working :

  • scaleBarEnabed : OK

I tried with v11 but the problem is the same...

@JB-CHAUVIN
Copy link
Author

It was because of new arch.
S.O created a PR : #3730

Here is the patch package if you need it ;-)

@rnmapbox+maps+10.1.33.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant