Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

MGLStyleLayer predicates (filters) #6049

Merged
merged 2 commits into from
Sep 2, 2016
Merged

Commits on Sep 2, 2016

  1. [ios] Added support for filters (NSPredicate)

    [ios, macos] cleaned up filters
    
    [ios] added a filter example
    
    [ios] utest filters
    
    [ios, macos] nested predicates
    
    [ios] refactored
    
    [ios] filter -> NSPredicate
    
    [ios] fixed mbgl::Any/AllFilter -> NSPredicate
    
    [ios] translate nested mbgl::NotIn filters
    
    [ios] cleanup and added more utests
    
    [ios] fixed a bug in the None filter conversion and improved utests
    
    [ios, macos] doc
    
    [macos] added missing category
    
    [ios, macos] additional utests
    
    [ios, macos] updated documentation
    frederoni committed Sep 2, 2016
    Configuration menu
    Copy the full SHA
    d77a13e View commit details
    Browse the repository at this point in the history
  2. [ios] Check for bool value with char

    We convert NSNumbers (and NSStrings) to the appropriate mbgl value
    so that we can use NSPredicates to  describe mbgl filters we want
    to apply to style layers at runtime.
    
    This change fixes an issue where
    the conversion from an NSNumber that represented a bool was not
    recognized as such. encode(bool) returns a 'c' or 'b' on 32 bit and
    64 bit systems respectively and objCType of an NSNumber representing
    a bool always returns 'c'. Now the implementation checks for 'c'
    always and NSNumbers representing bool don't fall through and
    trigger the exception.
    boundsj authored and frederoni committed Sep 2, 2016
    1 Configuration menu
    Copy the full SHA
    7e208c4 View commit details
    Browse the repository at this point in the history