You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Android runtime style API bug with filters & numbers #6040
This is finding the style layer which was created in Studio server-side from the source GeoJSON, not in the app. It uses getLayerAs() rather than your example of new LineLayer(). We should be able to query this existing layer, then change its properties.
What should happen is a styling similar to what's seen in Studio above, but what actually happens is that the whole of the segments layer is styled green.
I've confirmed that things work with both the primitive as the value as well as an Integer. Closing here and picking up in #5701. Thanks for your work @ivovandongen!
Activity
incanus commentedon Aug 16, 2016
Confirmed that I am seeing the parks example in c34130a work just fine in my setup, so it's something more unique about my data set.
ivovandongen commentedon Aug 17, 2016
@incanus I've tried out your json and code snippets by working it into the test app and it just seems to work. Can't say what's going wrong with your example based on the information you provided. See the patch here for more information: https://gist.github.com/ivovandongen/f6ac2d5edd66844f853126759134bc82
Hope that helps you.
incanus commentedon Aug 17, 2016
@ivovandongen You are adding a new layer rather than changing an existing one in Studio. See my original code in #6040 (comment):
This is finding the style layer which was created in Studio server-side from the source GeoJSON, not in the app. It uses
getLayerAs()rather than your example ofnew LineLayer(). We should be able to query this existing layer, then change its properties.Try this patch exactly to reproduce the problem:
https://gist.github.com/incanus/b89e1b07bdbcc921b4ae928901584e93
What should happen is a styling similar to what's seen in Studio above, but what actually happens is that the whole of the
segmentslayer is styled green.incanus commentedon Aug 18, 2016
This may actually be rendering related, not filter. See #5701.
incanus commentedon Aug 18, 2016
That's exactly what we're seeing here.
I've confirmed that things work with both the primitive as the value as well as an
Integer. Closing here and picking up in #5701. Thanks for your work @ivovandongen!