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.
Just as the iOS and macOS map SDKs expose conversion methods between NSExpression and JSON-like Foundation objects representing style specification expressions, they should also expose conversion methods between NSPredicate and JSON expressions. +[NSPredicate(MGLExpressionAdditions) mgl_predicateWithJSONObject:] and mgl_jsonExpressionObject have already been implemented, but they’re stuck in the private NSPredicate+MGLAdditions.h header:
@property (nonatomic, readonly) id mgl_jsonExpressionObject;
Once #11610 lands, we should move the rest of that header into an MGLPrivateAdditions category inside NSPredicate+MGLPrivateAdditions.h and reserve the MGLAdditions category for just these two public symbols.
Among other things, this will make it possible for React Native Mapbox GL to work with layer filters.
Activity
1ec5 commentedon Apr 27, 2018
+[NSPredicate(MGLExpressionAdditions) mgl_predicateWithJSONObject:]should be renamed+predicateWithMGLJSONObject:, along the lines of #11612.fabian-guerra commentedon May 4, 2018
Fixed in #11810