-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Performance regression for match
Expressions vs. property functions (data-join technique)
#6082
Comments
Thanks @andrewharvey . |
One Problem i show in this video. I get one flicker when using expression on an extruded layer |
@strech345 try using the property function syntax when using the data join technique, instead of expression syntax. Also ensure you are using to be v0.44. |
@ryanbaumann do you mean like this example? |
@strech345 try using property functions, not expressions (https://www.mapbox.com/mapbox-gl-js/style-spec/#other-function). - here's an example of data-joining 25k features. https://bl.ocks.org/ryanbaumann/63ca44169e657d66c1878f1083017e85/99a0a99cb7ca748dc4a74a79e82761c34dcce1c8 |
@ryanbaumann |
Awesome @strech345. Glad that property functions work well for your use case. I updated this ticket to focus on improving the Expression syntax to match or exceed property function performance for large numbers of |
match
Expressions vs. property functions (data-join technique)
Hmm maybe i was wrong. i now see the glitch also with no expression or color function only by using extrusion. This is what happend at this time. The building layer only have the zoomlevel 14.
|
If |
Hey guys, late to the discussion here, but I am also in the same boat. I have a huge data file that I need to join client side with a vector layer. Using expressions doesn't seem to be very performant. Was the performance of |
Thanks for the prompt reply, @ryanbaumann! Yes, downgrading to 0.42 seems to improve performance quite a bit indeed (especially when zooming in/out)! Will add my findings to the ticket you referenced. Going forward, what is the more recommended way to do data joins on the client side (property functions vs expressions)? Do you guys have anything on the roadmap to make this logic easier? |
For styling there is now the possebility to use Expressions. Thats nice for static data but whats about dynamic data?
For example i use vector tiles where features have only a id. At tile load i request from our server key value pairs (id -> property). Then i color it with
setPaintProperty
For me it would be nice to also use my own function
This could have some benefits:
I saw this on other map viewern like cesium with 3dtiles or google maps and would really like to use it in mapbox gl also.
The text was updated successfully, but these errors were encountered: