-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Unable to round-trip NSInteger in predicate #6248
Comments
|
Is a problem with handling int related to the cases 2 and 3 which I pointed above? If it is not, then maybe I should open a separate issue? |
I'm unsure about 2 and 3; can you open separate issues so we can diagnose and prioritize them individually? The NotHasFilter issue is #6244. |
For clarity, since Apple seems to like to hide this, the base types spit out by the range of
It seems like the capitalized variants ( |
Note that the encoded representation depends on the size of the type. NSInteger and NSUInteger in particular have different encodings on 32-bit versus 64-bit systems. |
Right, hence "at least on certain platforms". Also, we don't have to deal with any 32-bit Darwin systems, right? |
Regardless, #6290 handles all 15 |
iPad 2 is 32-bit. |
Hello! I'm facing some unexpected behavior of the MGLStyleLayer predicate using ios-v3.4.0-alpha.4.
"filter": ["all",["in","id",2467,2269,559,2906,852,189,3027,5597,188,765,190,633,146]]
Then I take a predicate from a current style after loading the app and try to apply it back again:
And here is the exception rising at once:
*** Terminating app due to uncaught exception 'Value not handled', reason: 'Can’t convert q:2467 to mbgl::Value'
All the elements in array are coming with (long) format.
"filter": ["all",["in","id",2467,2269,559,2906,852,189,3027,5597,188,765,190,633,146]]
Then I build a predicate just in a few millisecs (asynchronosly) after mapView initializing (while the map is rendering on the screen) and try to apply it:
And after that the layer disappears from the map.
In general my goal is to change selected road segment colors on demand based on road traffic data.
The text was updated successfully, but these errors were encountered: