Skip to content

Differences in Symbol Sizing When Using GeoJSON Properties vs. Constants in Expressions #5510

Open
@albasitum

Description

@albasitum

Hello! I was experimenting with defining an approximated function that allows me to maintain a "constant" size for texts, icons, etc when zooming in/out. However somehow I am seeing different behaviours depending on if I extract values using properties on the GeoJSON compared to if I define the values using constants. Maybe I am missing something, but I think it should behave the same way no matter what the source is when evaluating expressions, as long as the values being evaluated are the same.

maplibre-gl-js version: 5.1.0

browser: Google Chrome Version 133.0.6943.53 (Official Build) (64-bit)

Link to Demonstration

https://codepen.io/albasitum/pen/QwWjYEy

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions