Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to evaluate expression warning when using mouse events #13317

Open
palhal opened this issue Nov 5, 2024 · 0 comments
Open

Failed to evaluate expression warning when using mouse events #13317

palhal opened this issue Nov 5, 2024 · 0 comments

Comments

@palhal
Copy link

palhal commented Nov 5, 2024

mapbox-gl-js version: 3.7.0
browser: Chrome 130.0.6723.92 (64-bit)

Steps to Trigger Behavior

  1. Define a symbol layer with text-field combining at and get operators
  2. Add a mouse event listener for the applicable layer
  3. Hover a point in the applicable layer
  4. Observe that a console warning is emitted

Link to Demonstration

https://jsfiddle.net/pkhalle/9o18f52s/

Expected Behavior

No console warning is emitted.

Actual Behavior

The following console warning is emitted:

Failed to evaluate expression "["format",["get","value",["at",0,["array",["get","texts"]]]],{}]". The expression ["get","texts"] evaluated to string but was expected to be of type array<object>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant