summaryrefslogtreecommitdiff
path: root/platform/osx
Commit message (Collapse)AuthorAgeFilesLines
* [ios, osx] Unified offline and ambient cachesMinh Nguyễn2016-03-181-41/+19
| | | | | | There is now only one instance of mbgl::OfflineFileSource, created when the shared MGLOfflineStorage object is initialized. Also create and use the shared MGLOfflineStorage object when initializing an MGLMapView object. The unified cache file is located in a subdirectory of Application Support, where the SDK has control over the file’s lifetime. The subdirectory is already named after the host application’s bundle identifier, ensuring that each Mapbox-powered application has an independent tile limit. If there’s an ambient cache in a subdirectory of Caches, delete it. If there’s an offline cache in a subdirectory of Documents on iOS or Caches on OS X, move it to the unified cache location in a subdirectory of Application Support. Fixes the iOS/OS X side of #4338.
* [ios, osx] Renamed MGLOfflineTask to MGLOfflinePackMinh Nguyễn2016-03-102-2/+2
| | | | “Offline pack” more effectively communicates the persistent nature of the downloaded content.
* [ios, osx] Renamed offline classesMinh Nguyễn2016-03-102-9/+9
| | | | Renamed SDK classes related to offline viewing to more closely match the terminology used by mbgl and the Android SDK while remaining consistent with Cocoa naming principles.
* [osx] Added OS X support for offline downloadsMinh Nguyễn2016-03-1013-175/+18
|
* [ios] Non-embedded static frameworkMinh Nguyễn2016-03-081-1/+1
| | | | | | Added a new ifabric Make target for packaging up a static framework similar to the one released as 3.0.1. Place artwork and certificate assets inside Mapbox.bundle inside Mapbox.framework. Link SystemConfiguration in the umbrella header. Distinguish between the framework bundle and the resources bundle. For the dynamic frameworks and embedded static frameworks, the two are the same; for the non-embedded static framework, the latter resides inside the former.
* [android|ios|osx] Fix return type for pixelForLatLngBruno de Oliveira Abinader2016-03-011-1/+1
|
* [core] PrecisionPoint is now ScreenCoordinateBruno de Oliveira Abinader2016-03-011-4/+4
|
* Merge branch 'release-ios-v3.1.0'Minh Nguyễn2016-02-241-17/+29
|\
| * [ios, osx] Exclude misses from nearby annotationsMinh Nguyễn2016-02-101-1/+2
| | | | | | | | | | | | After filtering out elements of a vector using std::remove_if(), it’s apparently necessary to resize the vector. Otherwise, removing only has the effect of shifting the non-matching items to the end of the vector. This change reduces the annotation tap target back to almost what it was before #3261, except that these days the target is centered around the annotation image rather than the center point. There remains a much smaller slop area around the annotation, but nothing close to the effective padding before this change. Fixes #3880.
| * [core, ios, osx] Only constrain after adding to a windowMinh Nguyễn2016-02-101-10/+15
| | | | | | | | | | | | Introduced a setter/getter for constrain mode. On iOS and OS X, the zoom level inspectable causes the zoom level to be set independently from the longitude and latitude. Thus, the latitude inspectable had no effect because the latitude was constrained to 0 at z0. Temporarily removing the heightwise constraint allows the map to center on the intended location before zooming, which is the usual case for storyboards and XIBs. On iOS, the only guarantee we have timing-wise is that all the inspectables are applied after initialization but before the view is added to a window. So we reimpose the heightwise constraint as soon as the view is added to a window, that is, before the user has a chance to pan the map out of bounds. Fixes #3868.
| * [ios, osx] Fixed crash reselecting annotationMinh Nguyễn2016-02-101-6/+12
| | | | | | | | | | | | Handle the case where the currently selected annotation isn’t one of the nearby annotations. This hasn’t come up before on OS X because clicking an annotation while another annotation is selected only dismisses the callout popover. Fixes #3284.
* | [osx] Set default polyline and polygon color to the selected menu item colorJason Wray2016-02-184-16/+56
| | | | | | | | Fixes #3927
* | [osx] Typo in readmeMinh Nguyễn2016-02-181-1/+1
| |
* | [ios, osx] Consolidate remaining files in platform/{ios,osx}John Firebaugh2016-02-1215-19/+1027
| |
* | [build] Build `offline` tool on the botsThiago Marcos P. Santos2016-02-111-0/+3
| | | | | | | | Make sure it doesn't break.
* | [build] Fix broken target when building on the botsThiago Marcos P. Santos2016-02-111-1/+1
| |
* | Link to latest iOS SDK API documentationMinh Nguyễn2016-02-081-1/+1
| |
* | [core] move platform/gl.hpp to gl/gl.hppKonstantin Käfer2016-02-082-2/+2
|/
* [core] Improve LatLngBounds APIJohn Firebaugh2016-02-021-11/+11
| | | | | | | * Use "named constructors": empty, world, hull * Make the two-argument constructor lenient (i.e., it is a hull operation) * Add various accessors * Enforce a single empty representation
* [osx] setMaximumZoomLevel, setMinimumZoomLevelAnsis Brammanis2016-01-281-0/+10
| | | | | | | | adds: setMaximumZoomLevel setMinimumZoomLevel and makes `maximumZoomLevel` and `minimumZoomLevel` not readonly
* [core, ios, osx] Tilt around visual center pointMinh Nguyễn2016-01-261-1/+1
| | | | The tilt gesture on both iOS and OS X now respects the content insets. On iOS, in user tracking mode, it additionally respects the user dot’s position if it’s aligned to the top or bottom of the view.
* Cleanup std::chrono usageBruno de Oliveira Abinader2016-01-251-3/+3
| | | | Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
* [ios] Strip Simulator content when archivingMinh Nguyễn2016-01-222-2/+2
| | | | | | Copied strip-frameworks.sh from realm/realm-cocoa@7cc31db631c323bb649aec1e311693a599a37f05 for realm/realm-cocoa#2759. This script, which is embedded in the dynamic framework, strips out content for invalid architectures from any embedded framework and specifically strips out Simulator content when archiving to work around an App Store bug. Rewrote the iOS setup documentation. In particular, the MAPBOX_ACCESS_TOKEN environment variable is only for use with the iosapp demo application and doesn’t work in third-party applications.
* [ios, osx] Optionally animate content insets changeMinh Nguyễn2016-01-201-7/+17
|
* [core][ios][osx][android] make SpriteImage accept PremultipliedImageAnsis Brammanis2016-01-191-4/+5
| | | | | | | | | | | | the SpriteImage constructor signature changes from SpriteImage( uint16_t width, uint16_t height, float pixelRatio, std::string&& data, bool sdf = false); to SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false)
* [core][ios][osx][android] fix icons with non-integer width/heightAnsis Brammanis2016-01-191-2/+2
| | | | | | | | | | | ref #3031 ref #2198 For example, an icon that has: - a pixel width of 10 - a pixel ratio of 3 - a scaled with of 3.333 is now supported.
* [osx] No need to link with libpng & libjpegBruno de Oliveira Abinader2016-01-191-2/+0
| | | | | OSX platform includes platform/darwin/image.mm which uses CoreFoundation to decode PNG and JPEG images.
* [core, ios, osx, android, glfw] Flipped origin of Map::latLngForPixel(), ↵Minh Nguyễn2016-01-181-1/+7
| | | | | | | | Map::pixelForLatLng() Map and Transform methods assume an origin at the top-left corner of the view, like iOS, Android, and GLFW but unlike OS X. Transform is responsible for flipping coordinates between the top-left origin of Map and the bottom-left origin of TransformState. Fixes #3574.
* [core, osx] Added optional padding to convenience methodsMinh Nguyễn2016-01-181-9/+10
| | | | Methods that offer a convenient way to jump or ease now accept an optional padding parameter. MGLMapView specifies the padding to ensure that keyboard-based zooming and rotation respects the toolbar.
* [osx] Content insetsMinh Nguyễn2016-01-181-3/+61
| | | | Added a contentInsets property to MGLMapView that behaves similarly to NSScrollView.contentInsets. Adjust it according to the window’s content layout rectangle using KVO. Automatically apply the content insets whenever creating a CameraOptions or getting the center coordinates.
* [osx] Fixed static analyzer warningsMinh Nguyễn2016-01-141-1/+1
|
* [osx] Consistent origins in gesture recognizersMinh Nguyễn2016-01-141-28/+42
| | | | Cleaned up gesture recognizers, flipping the origins of anchor points only and always before calling mbgl methods. This exposed the fact that the cursor locking feature during drag-zoom/rotate/tilt was broken, so I fixed it to match MapKit behavior exactly and also account for modifier changes in mid-gesture.
* [core] Standardize transform originMinh Nguyễn2016-01-141-1/+1
| | | | All Transform methods that take a PrecisionPoint now assume a “flipped” origin at the upper-left corner of the view. Previously, some methods assumed an origin at the lower-left corner.
* [core] Separated AnimationOptions from CameraOptionsMinh Nguyễn2016-01-141-17/+20
|
* [core] Eliminate platform::assetRoot()John Firebaugh2016-01-131-3/+2
| | | | I regenerated assets.zip so that all file paths have an `assets/` prefix, as the Android AssetFileSource implementation asserts, and removed `TEST_DATA` from the paths.
* [ios, osx] Fixed Xcode 7.3 buildMinh Nguyễn2016-01-111-1/+1
| | | | Fixed a compiler error that’s new in Xcode 7.3. Also corrected a typo in MGLMapView on OS X.
* [core] Privatize SQLiteCacheJohn Firebaugh2016-01-081-4/+1
|
* [android, linux, osx] Upgrade to libpng 1.6.20Dane Springmeyer2016-01-061-1/+1
| | | | | - refs https://github.com/mapbox/mason/tree/libpng-1.6.20 - refs https://travis-ci.org/mapbox/mason/builds/100661025
* [android, ios, osx] Emoji ⇢ ASCII in Bitrise notificationsJohn Firebaugh2016-01-051-2/+2
|
* Rewrote documentationMinh Nguyễn2016-01-053-0/+63
| | | | | | | | Rewrote some copy to provide more context and link to more GL-related repos, including GL JS. Put the various SDKs in a table so we can show the various CI bot status images. Integrated target list into the relevant documents. Rewrote large portions of iOS and OS X setup documentation to guide normal developers to more friendly places. Combined some Android documentation. Moved SDK-specific documentation into platform/. Added a temporary readme in ios/ that points to the one in platform/ios/.
* Updated gesture helpMinh Nguyễn2016-01-051-3/+4
| | | | Followup to #3426.
* Double-tap to zoom out on Magic MiceMinh Nguyễn2016-01-041-7/+17
| | | | Fixes #3426.
* [osx] Fixed map feedback zoom levelMinh Nguyễn2016-01-041-1/+1
| | | | The map feedback tool still uses mapbox.js, so its zoom levels are one off from Mapbox GL’s.
* [osx] Corrected initial title for restored windowsMinh Nguyễn2016-01-041-7/+6
|
* [osx] Restore last window regardless of system preferenceMinh Nguyễn2016-01-043-54/+104
| | | | Even with the system preference set to close windows when quitting, the user would still expect this map-centric application to remember the last viewed map, because the world map isn’t quite as interesting.
* [osx] Fixed URL handler, reload for new access tokenMinh Nguyễn2016-01-043-66/+85
|
* [osx] Respect system window closing preferenceMinh Nguyễn2016-01-043-41/+34
| | | | Instead of forcing the system to restore windows between sessions (which confusingly switches the behavior of ⌘Q and ⌥⌘Q), honor the preference but have each new window inherit the style of the previous main window.
* [osx] Make osxapp document-basedMinh Nguyễn2016-01-048-644/+746
| | | | Allows for multiple map windows open at a time.
* [osx] Simplified zoom logicMinh Nguyễn2015-12-241-2/+8
|
* [osx] Run unit testsMinh Nguyễn2015-12-241-2/+2
|