diff options
author | Jesse Bounds <jesse@rebounds.net> | 2016-09-01 13:26:09 -0700 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2016-09-02 14:48:37 -0700 |
commit | 08f55af91491033c3da2b5a3de1e7bcb900b8964 (patch) | |
tree | e60d7a48e3440736054afe01b6a429dba8241bff /platform/darwin/src/MGLSource_Private.h | |
parent | ad095e458db7eee4085ec8be2528cdfa257371fd (diff) | |
download | qtlocation-mapboxgl-08f55af91491033c3da2b5a3de1e7bcb900b8964.tar.gz |
[ios, macos] Use NSDictionary for geojson source options.
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.
Diffstat (limited to 'platform/darwin/src/MGLSource_Private.h')
-rw-r--r-- | platform/darwin/src/MGLSource_Private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLSource_Private.h b/platform/darwin/src/MGLSource_Private.h index b4e3c1ebc3..2b8658b4cb 100644 --- a/platform/darwin/src/MGLSource_Private.h +++ b/platform/darwin/src/MGLSource_Private.h @@ -5,7 +5,7 @@ @interface MGLSource (Private) -- (std::unique_ptr<mbgl::style::Source>)mbgl_source; +- (std::unique_ptr<mbgl::style::Source>)mbglSource; @property (nonatomic) mbgl::style::Source *source; |