summaryrefslogtreecommitdiff
path: root/platform/darwin
Commit message (Collapse)AuthorAgeFilesLines
...
* [ios, macos] Documented MGLStyleValueMinh Nguyễn2016-10-171-2/+143
|
* [ios, macos] Designated initializersMinh Nguyễn2016-10-173-7/+33
| | | | Added designated initializers to MGLStyleValue and friends. Restored custom equality and descriptions to MGLStyleFunction. Raise an exception if an unrecognized subclass of MGLStyleValue or MGLStyleValue itself is passed into a style attribute property.
* [ios, macos] Expand changes to entire APIMinh Nguyễn2016-10-1746-1524/+982
|
* [ios, macos] Replaced MGLStyleAttributeValue with MGLStyleValueMinh Nguyễn2016-10-176-12/+256
| | | | MGLStyleValue is an umbrella class serving as a variant container for MGLStyleConstantValue and MGLStyleFunction. These classes use lightweight generics to indicate the underlying type. A templated C++ class concisely converts between mbgl::style::PropertyValue and MGLStyleValue.
* [ios, macos] fixes #6346: add support for configurable API base URL (#6709)Justin R. Miller2016-10-153-0/+70
|
* [ios, macos] Teach features and shapes about GeoJSON and mbgl typesJesse Bounds2016-10-1424-171/+548
| | | | | | MGLShape subclasses can now return NSDictionaries that represent the shapes' GeoJSON geometries. MGLFeature classes can now return NSDictionaries that represent the features as GeoJSON features. This makes it trivial to serialize iOS and macOS shapes and features into GeoJSON. MGLFeature instances can also return a representation of themselves as an mbgl::Feature. This capability is used in a refactoring of the implementations of MGLGeoJSONSource to more efficiently transform MGLFeatures into mbgl::Features so they can be fed directly into mbgl::GeoJSONSource without having to round trip through NSJSONSerialization. The MGLFeature identifier is converted into the mbgl::identifier type based on the type of the identifier. The MGLFeature attributes are recursively converted into an mbgl::PropertyMap and each value is converted into one of the types that the PropertyMap's Value variant supports.
* [ios, macos] Add feature initializerituaijagbone2016-10-148-10/+264
| | | | | | | | This adds a features initializer to MGLGeoJSONSource. The initializer takes shapes and converts them to JSON representation before passing to core. This also adds methods to the MGLShape concrete subclasses so that they can represent themselves in NSDictionary form suitable for transforming to JSON (GeoJSON).
* [ios, macos] possibility to set custom images to style (#6637)Roman Blum2016-10-123-48/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] possibility to set custom images to style * [ios, macos] setImage:forName now supports MGLImage (UIImage/NSImage) * [ios, macos] update documentation for setImage:forName: and removeImageForName: * [ios, macos] rename method and fix prefix * [ios, macos] change header visibility to project * [ios, macos] update header imports * [ios, macos] delete unnecessary whitespaces * [ios, macos] remove unnecessary nil checks * [ios, macos] delete unnecessary whitespaces * [ios, macos] update documentation * [ios, macos] make mgl_spriteImage a parameter-less instance method * [ios, macos] add asserts
* [ios, macos] Refer to style layer class in enum documentationMinh Nguyễn2016-10-115-0/+36
|
* [ios, macos] Simplified style property enum namesMinh Nguyễn2016-10-1114-192/+192
| | | | The name of each enumeration type no longer refers to the layer type that uses it.
* [ios, macos] Add description string for MGLStyle classJason Wray2016-10-111-0/+12
| | | | | | Example: <MGLStyle: 0x60800001e0a0; name = "Mapbox Dark", URL = "mapbox://styles/mapbox/dark-v9"> - Adds an internal `URL` property.
* [ios, macos] Mark incomplete initializers unavailableMinh Nguyễn2016-10-062-0/+5
|
* [ios, macos] Fully documented predicate propertyMinh Nguyễn2016-10-061-3/+94
|
* [ios, macos] Renamed files to match renamed classesMinh Nguyễn2016-10-0616-181/+191
|
* [ios, macos] Revamped MGLStyleLayer, MGLSource inheritanceMinh Nguyễn2016-10-0638-503/+516
| | | | | | | | | | Removed the MGLStyleLayer protocol, because almost none of its members was actually implemented in every class that adopted the protocol. Removed the unused mapView backpointer property with no replacement. Renamed MGLBaseStyleLayer to MGLStyleLayer. Created the intermediate abstract classes MGLForegroundStyleLayer and MGLVectorStyleLayer to cover subsets of style layer classes with like functionality. Moved each MGLBaseStyleLayer initializer and the corresponding properties down to an abstract subclass such that the initializer makes sense for all concrete subclasses. Moved more initializers and the predicate property up to MGLVectorStyleLayer to eliminate duplication among the concrete subclasses. Marked these initializers as designated initializers. Removed “source” or “layer” before identifier wherever the type of identifier is apparent. Removed extra MGLGeoJSONSource initializer variants in favor of nullable parameters. Added copious documentation comments for source and style layer classes, including several previously undocumented methods and properties. In particular, some preconditions and postconditions have been documented. Added pragma marks to break up the jazzy documentation pages into sections. Reformatted exceptions for consistency.
* [macos,ios] initialize util::RunLoop in SDK rather than by defaultKonstantin Käfer2016-10-061-1/+1
|
* [ios, macos] Remove support for CONTAINS operator (#6590)Minh Nguyễn2016-10-052-18/+1
| | | | | | * [ios, macos] Removed support for CONTAINS operator * [ios, macos] Removed CONTAINS test
* [ios, macos] fixes #6160: allow updating multipoint coordinates (#6565)Justin R. Miller2016-10-042-39/+96
|
* [ios, macos] Loosened style doc transform regex (#6543)Minh Nguyễn2016-09-301-2/+2
| | | | | Mildly decoupled the transformation from the style specification to the format required for iOS/macOS documentation so it’s harder for style specification references to other properties’ values to fall through the cracks. Fixes #6541.
* update style generation code for new style spec enum values docs (#6508)Justin R. Miller2016-09-308-40/+266
| | | | | | Documentation for enum values landed in mapbox/mapbox-gl-style-spec#510. This updates Android, iOS, and macOS documentation code gen scripts to capitalize on them.
* [darwin] NSURL remove workaround for file urlsIvo van Dongen2016-09-301-7/+0
|
* [ios, macos] Guard against nil bundle identifier during testsJesse Bounds2016-09-281-2/+11
|
* [ios, macos] flesh out iOS runtime styling docs (#6466)Justin R. Miller2016-09-2713-15/+141
| | | | | | | | - fixes #5959: MGLBaseStyleLayer docs - fixes #5960: MGLSource & subclasses docs - fixes #6467: concrete layer subclass docs - move Core Graphics include - slight code & template cleanups - add ./documentation to git ignores
* [core] standardize on uint16_t for texture sizesKonstantin Käfer2016-09-271-1/+2
|
* [ios, macos] Doc gen handles arrays as required property values (#6448)David Clark2016-09-241-5/+18
|
* clarify circle color as fill (#6447)Justin R. Miller2016-09-232-6/+6
|
* [ios, macos] Allow full hexadecimal colors in layer documentation (#6444)Minh Nguyễn2016-09-231-19/+8
| | | | | | | | * [ios, macos] Allow full hex colors in layer docs CSS hexadecimal RGB syntax can contain all the hexadecimal digits, not just the decimal digits. * [ios, macos] Parse colors with csscolorparser
* [ios, macos] Add tile template option to raster and vector sourcesJesse Bounds2016-09-227-9/+255
| | | A new MGLTileSet class that wraps all available core Tileset options can be created and passed into the sources. The sources pass that tileset object along to core.
* [ios, macos] increase timeout to 2 secondsFredrik Karlsson2016-09-211-2/+2
|
* [ios, macos] Short-circuit packs testMinh Nguyễn2016-09-211-3/+6
| | | | If the packs property is already populated, there’s no need to wait for a change notification.
* Better handling for undefined icon|text-rotation-alignment (#6253)Young Hahn2016-09-213-18/+23
| | | | | | * [core, ios, android] Use `auto` value for properties with calculated defaults * Fix render tests
* [ios] fix #6361: source query nullability & return nil for unfound results ↵Justin R. Miller2016-09-212-11/+5
| | | | | (#6408) Also removes some dead code in MGLStyle.mm.
* [ios, macos] Clarify MGLGeoJSONSource option units in API docs (#6411)Jesse Bounds2016-09-211-9/+9
|
* [ios, macos] Add more predicate operator to mbgl filter translationsJesse Bounds2016-09-213-20/+113
| | | Adds several new translations to prevent data loss.
* [ios, macos] Ignore progress updates after suspendingMinh Nguyễn2016-09-202-11/+21
| | | | -suspend and -resume are now presumed to be synchronous, even if technically they remain asynchronous under the hood.
* [ios] fixes #6248: properly handle all NSNumber types in filters (#6290)Justin R. Miller2016-09-162-6/+227
|
* [darwin] HttpFileSource - rate limitIvo van Dongen2016-09-131-0/+17
|
* [ios, macos] Separate transition options accessors from class APIBruno de Oliveira Abinader2016-09-131-1/+2
|
* [ios, macos] Put MGLStyleLayer inits in respective classesJesse Bounds2016-09-0825-35/+212
| | | | | | | | | | | | | | | | | | | | | | | Previously, we declared MGLStyleLayer initializers in the MGLStyleLayer protocol as optional methods. This made it easy to opt in and out of initializers that did or or did not make sense for the subclass. However, this approach was dangerous since it was easy for an application developer to initialize an MGLStyleLayer subclass with an init method that was actually not implemented in that class causing an exception at runtime. This commit moves the init methods that each subclass supports to each subclass so xcode (and the compiler) help the developer avoid the previously possible runtime exception. In addition, a new init method is added that takes the source layer and passes that on to `mbgl::style:Layer` (but only on classes where this is possible in core). This allows an application developer to style a specific source layer (i.e. the contour lines of the mapbox terrain vector source). Finally, this refactors MGLStyleLayer classes to use an MGLSource instead of a string identifier for the source when initializing the style.
* [core, ios, android, qt] Observe style layer mutations rather than requiring ↵John Firebaugh2016-09-0610-112/+7
| | | | | | SDKs to use Map::update This paves the way for updates to filter and layout properties to trigger a source reload, without each SDK having to participate in the implementation.
* [ios] Fix jazzy doc generation failure and document MGLGeoJSONSourceJason Wray2016-09-022-5/+19
| | | | | | | | | Clang/Sourcekitten do not appear to like HTML tags in `@param` definitions. Also: - Wraps lines at 80 chars. - Adds minimal docs for MGLGeoJSONSource so it will be seen by jazzy.
* [ios, macos] Use NSDictionary for geojson source options.Jesse Bounds2016-09-0210-61/+161
| | | | | | | | | | | | This removes a previous implementation of geojson options that used a new type to transfer the data around. Added in its place is an options API that takes an NSDictionary that works similarly to NSAttributedString and many other Cocoa APIs that take options. The options parser now expects the developer to send values of the type noted in the documentation and it simply converts the NSNumber to the correct type (integer, double, or bool) for mbgl. However, an exception is raised if the value is not an NSNumber.
* [ios, macos] fixes #5962 added geojson options to support clusteringFredrik Karlsson2016-09-024-1/+63
|
* [ios] Check for bool value with charJesse Bounds2016-09-022-2/+4
| | | | | | | | | | | | | | 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.
* [ios] Added support for filters (NSPredicate)Fredrik Karlsson2016-09-0224-49/+640
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [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
* [ios] Remove misleading MGLOverlay documentation (#6211)Jason Wray2016-08-301-5/+1
|
* [ios, macos] Specialize color properties by platformMinh Nguyễn2016-08-266-14/+119
| | | | Duplicate each color-typed property once per platform using conditional compilation macros. Let’s just hope we never have to throw CGColor into the mix.
* [ios, macos] Test roundtripping property functionsMinh Nguyễn2016-08-2611-31/+336
|
* [ios, macos] Fixed roundtripping padding functionsMinh Nguyễn2016-08-261-2/+2
|
* [ios, macos] Fixed roundtripping enum valuesMinh Nguyễn2016-08-261-3/+7
| | | | Also support unsetting enumeration-typed properties.