Skip to content

SVG icon-image with filter behaves different than without (Worked with 3.9.2) #13546

@pomm0

Description

@pomm0

mapbox-gl-js version

v3.14.0

Browser and version

Version 139.0.7258.138 (Official Build) (64-bit)

Expected behavior

Icons are rendered everytime just like without the filter. It works with mapbox 3.9.2

Actual behavior

Icons are disappearing and appearing depending on zoom level

Link to the demonstration

https://codepen.io/pomm0/pen/JoYwWPQ

Steps to trigger the unexpected behavior

  • add a valid mapbox accesstoken
  • zoom in and out
  • do the same without the filter on line 98 (filter: ['==', 'number', number])
mapbox-svg-icon-issue.mp4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions