summaryrefslogtreecommitdiff
path: root/platform/darwin/src
Commit message (Collapse)AuthorAgeFilesLines
* [ios, macos] Harmonize bundle identifiersMinh Nguyễn2018-11-151-4/+4
| | | | For consistency with each other and with their product name and module name, the iOS and macOS map SDKs now have a bundle identifier of com.mapbox.Mapbox, whether in the form of a static or dynamic framework. The logging subsystem identifier has also been changed to match.
* [core] define number of concurrent downloads in online file source variableHuyen Chau Nguyen2018-11-151-4/+0
|
* [ios, macos] Logging. (#13235)Fabian Guerra Soto2018-11-1441-39/+522
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Update the logging subsystem to platform agnostic. * [ios, macos] Add coordinate to string function. * [ios, macos] Add BOOL to string function. * [ios, macos] Add tracing logs. * [ios, macos] Add tracing logs to generated style classes. * [ios, macos] Split logging categories accordingly to MGLLoggingLevel. * [ios, macos] Log network requests. * [ios, macos] Migrate NSAssert to MGLAssert. * [ios, macos] Include MGLLoggingConfiguration to filesource-files.txt. * [ios, macos] Fix logger string specifier for the line parameter. * [ios, macos] Add logs to shapes classes. * [ios, macos] Add logs to offline classes. * [ios, macos] Add logs to annotation classes. * [ios, macos] Add logs to foundation classes. * [ios, macos] Fix snapshotter size logging. * [macos] Add logs to map view. * [ios, macos] Fix string from boolean prefix, add custom function for NSCAssert. * Log size test * [ios, macos] Add logging conditional compilation flag. * [ios, macos] Rename function NSStringFromMGLTransition to MGLStringFromMGLTransition. * [ios, macos] Remove verbose logging for release builds. * [ios, macos] Rename NSStringFromCLLocationCoordinate2D to MGLStringFromCLLocationCoordinate2D. * [ios, macos] Clean unnecesary blank lines in MGLLight.mm set methods. * [ios, macos] Fix logging grammar, format, function names. * [ios, macos] Remove compilation flag, rename flags.
* [ios] Address bad access exception in `MGLAttributionInfo` (#13300)Jordan Kiley2018-11-131-4/+14
| | | | | | * [ios] move creation of attributed string to global queue] * [ios] check if on main queue
* [ios][documentation] link API documentation to ios-sdk/examplesJosh Erb2018-11-1327-9/+264
|
* [build] Update to geometry v1.0.0Bruno de Oliveira Abinader2018-11-132-3/+50
|
* [ios, macos] Renamed ambient cache prewarming methodMinh Nguyễn2018-11-082-21/+27
| | | | Renamed the method for prewarming the ambient cache to conform to Cocoa and Swift naming conventions.
* [mac] Fix wrong allocation at layerFromMBGLLayerupstream/jrex/4352-resize-mapviewMikhail Pozdnyakov2018-11-071-9/+9
| | | | A leftover from https://github.com/mapbox/mapbox-gl-native/pull/13221
* [ios] Changed event attributes to be JSON serialization friendly. (#13266)Julian Rex2018-11-022-2/+2
|
* Remove style::Layer::is()/as()Mikhail Pozdnyakov2018-10-311-24/+24
|
* [ios, macos] Added $lineProgress expression variableMinh Nguyễn2018-10-302-0/+16
|
* [ios, macos] Fixed crash on nullary vararg expression functionMinh Nguyễn2018-10-271-3/+6
| | | | Equate the nullary and unary forms of vararg-style aftermarket expression functions when converting to JSON objects.
* Add a custom logging for the Mapbox Maps SDK for iOS.Fabian Guerra2018-10-263-0/+169
|
* [ios, macos] Refined MGLLineStyleLayer.lineGradient documentationMinh Nguyễn2018-10-251-4/+6
|
* [ios][documentation] add two links for delegatesJosh Erb2018-10-241-0/+2
| | | | | | * MGLMapView <-> MGLMapViewDelegate * MGLCalloutView <-> MGLCalloutViewDelegate * MGLLocationManager <-> MGLLocationManagerDelegate
* [ios] Log event when offline pack is createdNadia Barbosa2018-10-234-0/+52
|
* [core] CameraOptions receives and outputs angle and pitch as degrees, not ↵Bruno de Oliveira Abinader2018-10-191-1/+1
| | | | radians
* [darwin,test] Add "must-revalidate" support to putResourceWithURLChris Loer2018-10-172-4/+6
| | | | | Testing must-revalidate: true required an expiration date in the future, which exposed a round-tripping problem from translating NSDate to time_point based on now(). Use epoch of 1970 instead (although technically it's not guaranteed to be the epoch for system_clock until C++20)
* [darwin] Add MGLOfflineStorage putResourceForURLChris Loer2018-10-172-0/+44
| | | | Useful for pre-warming the ambient cache
* [ios, macos] Minimal darwin wrappers of 'format' expressionChris Loer2018-10-154-4/+24
| | | | Add support for `MGL_FUNCTION('format', <text>, <options dictionary>)`
* [ios, macos] Fixed camera initialization with eye coordinateMinh Nguyễn2018-10-011-11/+11
| | | | Rewrote the code that calculates the heading and pitch of the camera when given an eye coordinate.
* [ios, macos] Added MGLMapCamera.viewingDistance propertyMinh Nguyễn2018-10-012-1/+33
| | | | Co-authored-by: Dave Prukop <dave.prukop@mapbox.com>
* [ios, macos] Distinguish between viewing distance and altitudeMinh Nguyễn2018-10-013-5/+74
| | | | +[MGLMapCamera cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:] incorrectly treated the distance as an altitude. Due to backwards compatibility concerns, this method can’t be fixed in place. Instead, separate +[MGLMapCamera cameraLookingAtCenterCoordinate:correctlyFromDistance:pitch:heading:] and +[MGLMapCamera cameraLookingAtCenterCoordinate:altitude:pitch:heading:] methods have been added.
* Moved MGLAltitudeForZoomLevel and MGLZoomLevelForAltitude to public API (#12986)Dave Prukop2018-10-012-19/+20
| | | | | | * Moved MGLAltitudeForZoomLevel and MGLZoomLevelForAltitude to public API * Added notes to changelogs for ios and macos
* [ios, macos] Add crossSourceCollissions property. (#12941)Fabian Guerra Soto2018-09-262-0/+17
| | | | | | | | * [ios, macos] Add crossSourceCollissions property. * [ios, macos] Add perSourceCollisions property. * [ios, macos] Update changelogs.
* [ios] Fix for user location annotation jittering (and view annotations ↵Julian Rex2018-09-261-0/+7
| | | | lagging) (#12895)
* [ios, macos] Offline regions merge. (#12791)Fabian Guerra Soto2018-09-172-0/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Add offline regions merge. * [ios, macos] Update changelogs. * [ios, macos] Fix refreshing the offline packs after new content is added. * [ios, macos] Update MGLOfflineStorage's add contents of file documentation. * [ios, macos] Add MGLOfflineStorage test cases for adding file contents. * [ios, macos] Add offline merge test database. * [ios, macos] Add packs parameter to MGLBatchedOfflinePackAdditionCompletionHandler. * [core] Fix a query mege duplication. * [ios, macos] Remove unnecessary pack iteration. * [ios, macos] Fix packs update KVO notifications. * [ios, macos] Add localization strings. * [core] Fix query readability. * [ios, macos] Fix MGLOfflineStorageTest, cleanup the cache database after the test. * [ios, macos] Fix offline packs, updating triggers a crash.
* [ios, macos] Look even more widely for IB designables agentMinh Nguyễn2018-09-131-1/+2
| | | | The IBDesignablesAgent helper process has been renamed to IBAgent as of the Xcode 10 GM seed, so cast an even wider net when trying to detect it.
* Port symbol-z-order symbol layout style-spec property to Nativeupstream/sort-by-yryanhamley2018-09-072-0/+91
|
* [ios, macos] Call snapshotter (Obj-C) completion block on dealloc/cancel if ↵Julian Rex2018-09-052-25/+82
| | | | snapshot hasn't finished. (#12355)
* [core] Implement CrossFadedDataDrivenProperty to add support for feature ↵Molly Lloyd2018-08-316-18/+9
| | | | expressions in `*-pattern` properties
* [core] Add `line-gradient` propertyMikhail Pozdnyakov2018-08-233-1/+62
| | | | | | | | Porting of https://github.com/mapbox/mapbox-gl-js/pull/6303 See the link above for the description of the feature and its limitations). Based on patch from @lbud (Lauren Budorick).
* [ios, macos] Introduce `MGLShapeSourceOptionLineDistanceMetrics`Mikhail Pozdnyakov2018-08-212-0/+21
| | | | | Exposes access to https://www.mapbox.com/mapbox-gl-js/style-spec/#sources-geojson-lineMetrics
* Warn if MGLShapeSource is initialized with MGLShapeCollectionNadia Barbosa2018-08-203-0/+26
| | | | | | | | | | Move warning from ShapeCollection to ShapeSource Try checking MGLComputedShapeSources Include MGLShapeCollection header Add changelog entry
* [darwin] arbitrary offline region geometriesIvo van Dongen2018-08-2010-27/+275
|
* [core] make style/conversion.hpp implementation privateKonstantin Käfer2018-08-191-1/+1
|
* WIP: use expected<T, E> for passing on errorsKonstantin Käfer2018-08-142-13/+13
|
* [ios] Remove Xcode 7 compatibility typedefsJason Wray2018-08-091-7/+0
|
* [ios] Standardize exception definitionsJason Wray2018-08-0921-31/+74
|
* [core] Replace unique_any with peer from mapbox-bindgenBruno de Oliveira Abinader2018-08-081-2/+2
|
* [core] Merge DataDrivenPropertyValue into PropertyValue (#12513)John Firebaugh2018-07-3113-170/+153
|
* [iOS] Add fallbacks for name fields (#12387)Lloyd Sheng2018-07-261-1/+19
| | | | | | | | * Add fallbacks for name fields * Add a fallback for `name_zh-Hant` * Update changelog
* [ios, macos] Fixed typos in expression conversion error messagesMinh Nguyễn2018-07-251-2/+2
|
* [darwin] Use FOUNDATION_EXTERN instead of plain externJason Wray2018-07-2410-37/+37
| | | | FOUNDATION_EXTERN is an alias for extern in most cases, but also covers us in the event that a method could be mismangled by the compiler as C++ (when we want C-style mangling, for Obj-C compatibility).
* [ios] Simplify and (internally) document MGLPointRounded()Jason Wray2018-07-242-1/+4
| | | | `UIScreen.nativeScale` is available beginning in iOS 8, so the conditional is no longer necessary.
* [ios] Move private geometry symbol visibility definitions to headerJason Wray2018-07-242-4/+2
|
* [ios] Fix symbol mangling issue with MGLMapPointForCoordinate()Jason Wray2018-07-241-2/+2
| | | | `MGLMapPointForCoordinate()` was `extern`-defined in a C header, but implemented in an Obj-C++ source file and mangled as a C++ symbol. `FOUNDATION_EXTERN` is C++-aware and will force C-style symbol mangling, which fixes the undefined symbol issue in consumer Obj-C projects.
* [android, ios, macos] Generate symbol-placement: line-center wrappersChris Loer2018-07-232-20/+35
|
* [ios] Mapbox's Location Manager new API. (#12013)Fabian Guerra Soto2018-07-203-0/+302
| | | | | | * [ios] The new location manager API provides two new protocols MGLLocationManager and MGLLocationManagerDelegate to handle the location cycle and updates respectively. This enables developers to chose the appropriate location provider according to their needs, or transition between outdoors/indoors location updates. It does provide a default implementation based on CLLocationManager.
* [ios, macos] Convert token strings to expressions on inputJohn Firebaugh2018-07-208-133/+32
| | | | Removes mgl_expressionByReplacingTokensWithKeyPaths and associated code. Converting on output is no longer necessary: from the prior commit, core converts token strings to expressions at parse time; all that's necessary is to ensure that the runtime styling API does so as well.