Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

symbol-z-order not respected when symbols are rendered at different coordinates #13490

@samfader

Description

@samfader

Steps to reproduce

  1. Pull down symbolzorder-example (symbolZOrder example ios-sdk-examples#245) branch in the ios-sdk-examples app.
  2. Run the app and open the ObjC/Swift version of the Specify z order of features in a symbol layer example.
  3. Try switching between the two options presented in the toggle at the bottom of the screen.

Expected behavior

The icons are arranged in the proper order depending on the symbol-z-order.

Here is a GL JS example (uploaded as a zip because it includes images) that contains two files - one where the symbol-z-order is set to source, and another viewport-y. You'll see the z-order of the shapes changes as expected.

Actual behavior

The icons stay in the same arrangement (z-order).

GL JS
source
image

viewport_y
image

iOS
Image from Gyazo

Configuration

Mapbox SDK versions: 4.5.0
iOS/macOS versions: iOS 12.1
Device/simulator models: iPhone XS Max
Xcode version: 10.1

cc @captainbarbosa @ryanhamley

Metadata

Metadata

Assignees

No one assigned

    Labels

    iOSMapbox Maps SDK for iOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions