summaryrefslogtreecommitdiff
path: root/platform/darwin
Commit message (Collapse)AuthorAgeFilesLines
* [ios, macos] Offline storage size APIMinh Nguyễn2016-07-183-0/+25
| | | | | | Added a property to MGLOfflineStorage that indicates the disk space occupied by all cached and offline resources. Fixes #5580.
* [core] Add support for $id key to filtersJohn Firebaugh2016-07-181-8/+9
| | | | https://github.com/mapbox/mapbox-gl-style-spec/issues/391
* [core] Clean-up threading #ifdefsThiago Marcos P. Santos2016-07-161-0/+13
|
* Merge branch 'release-ios-v3.3.0'Minh Nguyễn2016-07-142-2/+5
|\
| * [ios, macos] Reorganize jazzy’s navigation categories; cleanup docs (#5660)Jason Wray2016-07-122-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | An attempt to better surface relevant information. Includes slight cleanups of inline documentation. - Demotes MGLMapDebugMaskOptions to "Other Enums”. - Demotes MGLMapViewDecelerationRate* and MGLStyleDefaultVersion to "Other Constants”. - Demotes MGLOfflinePack's less significant global types. - Demotes MGLAnnotationVerticalAlignment and documents its usage caveat. - Demotes MGLAnnotationViewDragState and removes extra asterisk. - Adds note to `MGLUserTrackingMode` about usage with `MGLMapView.userTrackingMode`. - MGLAccountManager is currently only used for access tokens. - Adds missing closing bracket.
* | [ios,macos] Partially revert 06af75Bruno de Oliveira Abinader2016-07-143-5/+5
| | | | | | | | | | Use static_cast<float> to convert from CGfloat when creating PropertyValue<float> and avoid breaking backwards-compatibility.
* | [ios,macos] Update {Line,Fill}Annotation properties setterBruno de Oliveira Abinader2016-07-133-8/+8
| |
* | [ios, macos] Updated MGLFeature ID documentationMinh Nguyễn2016-07-101-4/+14
| | | | | | Since #5514, feature IDs may be integers, unsigned integers, floating-point numbers, or strings, not just unsigned integers.
* | Merge branch 'release-ios-v3.3.0' into masterJesse Bounds2016-07-0724-50/+1096
|\ \ | |/
| * [ios] Move cache.db to a subdirectory (#5601)Jason Wray2016-07-072-49/+84
| | | | | | | | | | | | | | | | | | | | | | We cannot guarantee that the offline/ambient tile cache (cache.db) will be created in a timely manner, so it's safer to set the backup exclusion key on its containing directory. But, because we placed cache.db in the base of the app's Application Support directory (where backups are expected to be allowed), we need to move cache.db into a directory that we control and can exclude from backups with impunity. This is an amalgam of https://github.com/mapbox/mapbox-gl-native/pull/5578 (directory exclusion) and https://github.com/mapbox/mapbox-gl-native/pull/5585 (refactored URL methods, but without the new database size method). Also: * Prefix mapbox subdirectory with dot, for extra safety * Update changelog entry with new ticket, less speculation
| * [ios] #3979 compress telemetry events (#5490)Fredrik Karlsson2016-07-052-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios] #3979 wip gzip telemetry events * [ios] expose compression from core instead of adding a new dependency * [ios] #3979 Exposed decompress from mbgl and added a test case * [ios] #3979 cleanup * [ios] #3979 cleaned up test case * [ios] #3979 cleanup * [ios] #3979 gzip -> deflate
| * [ios, macos] Add Mapbox Jazzy themeJason Wray2016-07-0119-0/+973
| | | | | | | | | | | | | | | | | | | | | | - Based on Jazzy's "full width" theme. - Add ellipsis to overlong items in navigation menu. - Set minimum width for navigation menu. - Use Open Sans font face. - Inline GitHub header icon as SVG. - Center images by default. - Add GitHub SVG icon to 'show on github' link. - Wrap overlong method names on class pages.
| * [ios, macos] Use common instead of default mode for run loop source (#5503)Jesse Bounds2016-06-291-1/+1
| | | | | | | | | | | | The map events instigated by certain actions (i.e. updates from a UIScrollView) are not processed by the run loop with `kCFRunLoopDefaultMode`until the thread is idle. This changes the mode to `kCFRunLoopCommonModes` to avoid this issue.
| * [macos] Renamed OS X SDK to macOS SDKMinh Nguyễn2016-06-182-5/+5
| | | | | | | | | | | | Also renamed as many references to OS X as possible to macOS in documentation. Cherry-picked from b9702ef41a4cfdd0ab3107cfe5cec16ba3a4c230.
* | [core] geometry@0.8.0 / geojsonvt@6.0.0 (#5514)Young Hahn2016-07-062-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] geometry.hpp 0.8.0 * geojsonvt @ 6.0.0 * Update platform deps, build scripts * Perf optimizations/cleanup * Rebase in geometry@080 * D.R.Y. etc * Ensure fill annotation geometries have closed rings. * Optimizations * Update to geojsonvt @ 6.1.0 for clean handoff between geojson parsing and geojsonvt * Apply close multi/poly geoms for line annotations as well
* | Color class (#5361)Young Hahn2016-06-151-2/+2
| | | | | | | | | | | | * Color class * Switch to list initialization
* | [macos] Renamed OS X SDK to macOS SDKMinh Nguyễn2016-06-142-5/+5
| | | | | | | | Also renamed as many references to OS X as possible to macOS in documentation.
* | [core] Make enum ↔ string conversion more generic-friendlyJohn Firebaugh2016-06-131-1/+2
| | | | | | | | | | | | Rewrite enum.hpp in such a way that parseConstant can be defined generically for all enumerated types. While there, properly validated enumerated property values.
* | [tidy] Check modernize-use-nullptrBruno de Oliveira Abinader2016-06-131-1/+1
| | | | | | | | Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
* | [core] fix pedantic warning messagesKonstantin Käfer2016-06-131-60/+0
|/
* [ios, osx] Add an assertion to -[MGLMultiPoint annotationObjectWithDelegate:]John Firebaugh2016-06-011-0/+5
|
* [all] Rationalize annotation APIJohn Firebaugh2016-06-014-16/+21
|
* [core] Use geometry.hpp types for shape annotationsJohn Firebaugh2016-06-014-41/+32
|
* [osx] Relegated “selection” to context menuMinh Nguyễn2016-05-272-4/+4
| | | | Moved feature selection to the context menu and restored the press gesture for dropping a pin. Bust complex features into simple shapes to feed into MGLMapView as overlays.
* [ios, osx] Ignore compound shape types as annotationsMinh Nguyễn2016-05-274-2/+12
| | | | Ignore any multipolyline, multipolygon, or shape collection object passed into -addAnnotation: or -addAnnotations:. Previously, these methods broke apart the compound shape into its constituent shapes in order to recursively add them to the map. But that broke assumptions about a one-to-one correspondence between annotations and their contexts during selection and deletion.
* [ios, osx] Cleaned up evaluatorsMinh Nguyễn2016-05-271-78/+52
| | | | Removed a level of indirection when creating Objective-C collections from C++ collections. Adopted mbgl typedefs for geometry.hpp types. Factored out MGLPolygon construction.
* [ios, osx] Holes in polygonsMinh Nguyễn2016-05-277-46/+136
| | | | | | | | MGLPolygon (and by extension MGLMultiPolygon) now supports interior rings. The data is preserved in feature querying results, and interior rings are respected when adding polygon overlays to the map. Fixes #1729. [ios, osx] Updated changelog
* [ios, osx] MGLFeature testsMinh Nguyễn2016-05-271-0/+130
|
* [ios, osx] Streamlined conversion to MGLFeatureMinh Nguyễn2016-05-273-145/+150
| | | | Made writability of MGLFeature properties private, to avoid having to awkwardly explain that changes to the properties don’t change the map (maybe someday they will). This allows the identifier and attributes to be set in only one place, avoiding copy-pasta.
* [ios, osx] Feature querying; complex geometry classesMinh Nguyễn2016-05-279-0/+590
| | | | | | | | | | | | | | Added methods to MGLMapView that return the rendered features at a visible point or within a visible rectangle on the map, optionally restricted to a set of layers, plus voluminous documentation. Added several new geometry classes corresponding to distinct geometry types supported by geometry.hpp. Added parallel “feature” classes to represent these geometries along with tags (IDs) and attributes (properties) from the source. Grouped classes in the Foundation and SDK groups by theme. In iosapp, dropped pins’ callout views now display the name of the topmost named feature at that point. In osxapp, a long press on the map highlights the features under the cursor. Dropping a pin via the menu or context menu item shows the usual dropped pin, but the pin’s title is now the name of a feature under the cursor, if available, rather than “Dropped Pin”. Fixes the iOS/OS X side of #352.
* [ios] Set backup exclusion flag after initializing DefaultFileSource (#5124)Jason Wray2016-05-242-7/+30
| | | Speculatively fixes #511, where apps mistakenly backup the offline/ambient cache.
* [ios] Make MGLCoordinateInCoordinateBounds() public (#5053)Jason Wray2016-05-173-5/+29
| | | Bounds should always be in NE, SW order — any other coordinate order (e.g., NW, SE) will give false results.
* [core] move from microsecond precision timestamp to integer second precisionKonstantin Käfer2016-05-131-2/+2
|
* Merge branch 'release-ios-v3.2.2' into 1ec5-release-ios-v3.2.2-masterMinh Nguyễn2016-05-101-0/+6
|\
| * [ios, osx] Revised style descriptionsMinh Nguyễn2016-05-061-9/+9
| | | | | | | | | | | | Revised style descriptions to be more consistent with how the styles are described on www.mapbox.com. Cherry-picked from 5035dc8418d931551bd58360bc82de2ae34cb066.
| * [ios, osx] Renamed version constant, linked to more infoMinh Nguyễn2016-05-063-37/+41
| | | | | | | | | | | | | | | | Renamed MGLStyleCurrentVersion to MGLStyleDefaultVersion to emphasize the constant’s role as an indicator of the default version used by SDK classes, which may be behind depending on release schedules. In the documentation for each style URL method, include the actual version number instead of the constant. In unit tests, verify that this documentation is in sync with the constant. Link each style URL method’s documentation to a forthcoming webpage on mapbox.com that describes the style in rich detail. Cherry-picked from 2ec95bc490c5793b7b8a3aa9999f48d196ca8085.
| * [ios, osx] Renamed Hybrid to Satellite StreetsMinh Nguyễn2016-05-062-7/+17
| | | | | | | | | | | | The style ID has also changed, but the unversioned method will continue to point to the old v8 style ID. Cherry-picked from 5ccb43477fc1d2028aef283d0db64848ebc9a347.
| * [ios, osx] Pin unversioned style URL APIs to v8 stylesMinh Nguyễn2016-05-062-7/+7
| | | | | | | | Cherry-picked from 4a112c00f1634be40d10aa4797ac8e9262b8711a.
| * [core, ios, osx] Version default style URL APIs; deprecated EmeraldMinh Nguyễn2016-05-063-28/+110
| | | | | | | | | | | | | | | | | | | | | | | | Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency. Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp. Replaced Emerald with Outdoors in iosapp and osxapp. Fixes the iOS and OS X side of #4577 and #4702. Cherry-picked from 2a4eeadb295775236fe1a89b50f9179b790b127a.
| * [ios, osx] Use HTML links in documentationMinh Nguyễn2016-04-202-10/+11
| | | | | | | | | | | | | | | | Replaced Markdown syntax with HTML syntax for hyperlinks in documentation comments. HTML links work both inside Xcode (whether Objective-C or Swift) and on the Web (via jazzy). Fixes #3961. Cherry-picked from de0705c7ede7fea5980ed220a1160085630bd89e.
* | [ios, osx] Reformatted documentation commentsMinh Nguyễn2016-05-1011-72/+228
| | | | | | | | Reformatted documentation comments in public headers in the OS X SDK and public headers shared between the iOS and OS X SDKs to wrap at column 80 and avoid excessive indentation that causes SourceKitten to detect code blocks.
* | [ios, osx] Revised style descriptionsMinh Nguyễn2016-05-061-9/+9
| | | | | | | | Revised style descriptions to be more consistent with how the styles are described on www.mapbox.com.
* | [ios, osx] Renamed version constant, linked to more infoMinh Nguyễn2016-05-065-52/+74
| | | | | | | | | | | | Renamed MGLStyleCurrentVersion to MGLStyleDefaultVersion to emphasize the constant’s role as an indicator of the default version used by SDK classes, which may be behind depending on release schedules. In the documentation for each style URL method, include the actual version number instead of the constant. In unit tests, verify that this documentation is in sync with the constant. Link each style URL method’s documentation to a forthcoming webpage on mapbox.com that describes the style in rich detail.
* | [ios, osx] Renamed Hybrid to Satellite StreetsMinh Nguyễn2016-05-063-8/+18
| | | | | | | | The style ID has also changed, but the unversioned method will continue to point to the old v8 style ID.
* | [ios, osx] Pin unversioned style URL APIs to v8 stylesMinh Nguyễn2016-05-063-12/+12
| |
* | [core, ios, osx] Version default style URL APIs; deprecated EmeraldMinh Nguyễn2016-05-066-35/+172
| | | | | | | | | | | | | | | | | | | | Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency. Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp. Replaced Emerald with Outdoors in iosapp and osxapp. Fixes the iOS and OS X side of #4577 and #4702.
* | [core] Use geometry.hpp feature typeJohn Firebaugh2016-05-031-1/+0
| |
* | [ios] Updated offline pack testsMinh Nguyễn2016-04-272-4/+9
| | | | | | | | Updated the MGLOfflinePackProgress boxing test to test the two new fields. Wordsmithed the documentation a bit. Updated the changelog.
* | [ios, osx] Add countOfTilesCompleted bindingJohn Firebaugh2016-04-272-0/+6
| |
* | [ios, osx] Add a property for bytes used by offline tilesBrent Whitman2016-04-272-1/+6
| |