Skip to content

[Bug]: How can I use lineZOffset in React Native Mapbox #3843

@huytm2k3

Description

@huytm2k3

Mapbox Implementation

Mapbox

Mapbox Version

default

React Native Version

0.76.2

Platform

iOS

@rnmapbox/maps version

#main

Standalone component to reproduce

// <MapboxGL.LineLayer
//    id={`COLLECT_LINESTRING_${lineString.uuid}_LINE_LAYER`}
//    style={{
//      lineColor: checkSelected ? GCColor.colorHighlight : GCColor.colorCollectLine,
//      lineCap: 'round',
//      lineJoin: 'round',
//      lineWidth: checkSelected ? 6 : 3,
//      lineOpacity: overlayOpacity,
//      lineZOffset: 5,
//      lineElevationReference: 'ground',
//    }}
//  />

Observed behavior and steps to reproduce

I want to display a linestring on map with elevation, but application throws this error: [Error: lineZOffset is not a valid Mapbox layer style]

Expected behavior

No response

Notes / preliminary analysis

No response

Additional links and references

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions