Skip to content

Prop localizeLabels doesn't take effect for changing language of map content.  #284

Description

@fozhao

Describe the bug
Prop localizeLabels doesn't take effect for changing language of map content

To Reproduce
Add a mapbox map in a react-native project and launch the app on a iOS device which language is Simplified Chinese.

            <MapboxGL.MapView
                style={styles.map}
                accessToken={mapboxToken}
                localizeLabels={true}
                onPress={this.onPress}
            >
                <MapboxGL.Camera
                    animationDuration={1}
                    zoomLevel={4}
                    centerCoordinate={[initialPosition.longitude, initialPosition.latitude]}
                />
            </MapboxGL.MapView>

Expected behavior
With localizeLabels specified as true, the map content (street name, cities, etc) should be displayed in Simplified Chinese.

Actual Result
The map content is still displayed in English.

Versions (please complete the following information):

  • Platfrom: Android, iOS
  • Device: iPhone 7 Plus
  • OS: iOS 12.3.1
  • SDK Version: 7.0.0-rc3
  • React Native Version: 0.59.10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions