-
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
Unable apply runtime styles for extrusion properties #3386
Comments
There's also a little bug in here that affects problemThe bigger problem you're seeing @scothis is that in When you see the polygons disappear, this is because the parsed fill buckets now have a style that sends them down the solutionWe would never want to quintuple the number of vertices for all fill layers, so I think the answer here may be to add a new hack** however ** For those currently blocked by this bug, because of the way we define zoom constant and feature constant in mapbox-gl-function (based on the simple fact of a property being an object, rather than based on the value of the object), a hack that will work is
Note that this will still suffer from the aforementioned lighting problem (where it won't render the same as it would as a regular flat fill layer because of the lighting). review@lucaswoj @scothis @jfirebaugh @mourner what do you think about adding a boolean layout property to indicate which type of bucket to create rather than basing the bucket type on an inference from the fill-extrude-height paint value? |
This is a valid option and it has some drawbacks. Duplicating state creates edge cases and boilerplate. A design without the "duplicate state" drawback is latching onto the |
Should we reconsider making extruded fills a separate render type? Between these buffer contents differences, lighting differences, and our inability to support |
Yes, I think we should have kept them a separate layer type. Another difference is that extruded fills don't support |
…ude buckets when necessary (fix #3386)
23bad37 addresses this particular bug with @lucaswoj's suggested approach. I've been thinking about @ansis and @jfirebaugh's concerns about having a separate layer type for fill extrusions and am opening a separate spec issue, but I think I should go ahead and merge this fix. |
…ude buckets when necessary (fix #3386)
…ude buckets when necessary (fix #3386)
@lbud pulling in master, I'm still seeing issues with adding a |
This will be solved with mapbox/mapbox-gl-style-spec#554. |
mapbox-gl-js version: 0.26.0
Steps to Trigger Behavior
map.setPaintProperty(fillLayerId, 'fill-extrude-height', 1);
example http://codepen.io/anon/pen/yaqRpK
Expected Behavior
The style should render the new value and turn the layer from 2d fills into 3d extrusions.
Actual Behavior
The layer disappears, sometimes there is an error on the console right away, sometimes you have to move the map before you see a console error.
The text was updated successfully, but these errors were encountered: