Skip to content

SymbolLayer iconImage incorrect Scale in Release Build #40

@ferologics

Description

@ferologics

Steps to Trigger Behavior

  1. create a MGLSymbolStyleLayer with some image
  2. observe image size differs based on build configuration

Minimal Reproducible Example

const point_icon = require('@assets/icons/point/Group.png');
<MapLibreGL.SymbolLayer id={id + '_layer'} style={{   iconImage: point_icon }} />

where @assets/icons/point/Group.png has Group@2x.png and Group@3x.png variants
point_asset_image.zip

Expected Behavior

Image stays same size as in debug build

Actual Behavior

Image is @3x.png scale size instead

Screenshots (if applicable)

release debug
IMG_2910 image

Version(s) affected

  • Platform: iOS
  • OS version: 16.4.1
  • Device type: iPhone 14 Pro Max
  • Development OS: macOS 13.3.1 (22E261)
  • maplibre-react-native Version 9.0.1
  • React Native Version: 0.71.6

Additional context

Maybe related to facebook/react-native#28670

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions