summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* [core] Remove Response::Error::Reason::CanceledJohn Firebaugh2016-02-041-1/+0
| | | | There is no such thing as a cancelled response, only cancelled requests. A request that is cancelled does not have its callback called with a Response.
* [core] Comparison operators for LatLngBoundsJohn Firebaugh2016-02-031-0/+11
|
* [core] #509 - Creating and using MIN_ZOOM and MAX_ZOOM constantsBrad Leege2016-02-031-0/+2
|
* [core] Make bool conversions explicitJohn Firebaugh2016-02-031-4/+12
| | | | Implicit bool conversions are bad; they'll be used e.g. for a == b and a != b if those operators are not defined. This was happening at https://github.com/mapbox/mapbox-gl-native/blob/032c8fba3c8e3c122dd399b5c9341d92ad9d286f/src/mbgl/map/transform.cpp#L132-L132, for example.
* [core] Improve LatLngBounds APIJohn Firebaugh2016-02-021-9/+47
| | | | | | | * 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
* [core] Remove unusedJohn Firebaugh2016-02-021-1/+0
|
* [core] Remove superflous inlinesJohn Firebaugh2016-02-021-18/+18
|
* [core] Remove unusedJohn Firebaugh2016-02-021-4/+0
|
* [core] Remove unusedJohn Firebaugh2016-02-022-13/+0
|
* [core] support tiles with non-4096 extentsAnsis Brammanis2016-02-021-0/+1
| | | | | Convert all geometries to the maximum extent supported by our buffers and then use that constant extent everywhere else.
* [ios] Renamed -showAnnotations:withEdgeInsets:animated:Minh Nguyễn2016-02-011-10/+9
| | | | Renamed -showAnnotations:withEdgeInsets:animated: to -showAnnotations:edgePadding:animated: for consistency with other methods. Reworded documentation comments to avoid hard-coding too many specifics that are prone to getting outdated.
* Custom edgeInsets for fitting in showAnnotationsJordan Moncharmont2016-02-011-3/+21
| | | | Keeps sensible defaults already in place, but allows callers to override.
* [core] Don't use structJohn Firebaugh2016-02-011-5/+10
| | | | It makes forward declarations inconsistent and liable to change, for no real gain.
* [core] Change TileData pixelRatio to an integerJohn Firebaugh2016-01-291-1/+1
|
* [core] Rationalize Resource initializationJohn Firebaugh2016-01-291-14/+27
|
* [core] Ensure that FileSource has access to tile URL, pixelRatio, x, y, zJohn Firebaugh2016-01-291-0/+12
|
* [ios] Restored toggleDebugMinh Nguyễn2016-01-281-1/+1
| | | | Restored (but deprecated) a method removed in #3100 to avoid a major version bump.
* [ios] Debug maskMinh Nguyễn2016-01-281-12/+22
| | | | Ported MGLMapDebugMaskOptions from the OS X SDK. Deprecated debugActive and -cycleDebugOptions.
* [osx] setMaximumZoomLevel, setMinimumZoomLevelAnsis Brammanis2016-01-281-7/+23
| | | | | | | | adds: setMaximumZoomLevel setMinimumZoomLevel and makes `maximumZoomLevel` and `minimumZoomLevel` not readonly
* [ios] getters, setters for minZoom, maxZoomAnsis Brammanis2016-01-281-0/+24
| | | | | | | | adds: minimumZoomLevel setMinimumZoomLevel maximumZoomLevel setMaximumZoomLevel
* [core] add setMaxZoom, setMinZoomAnsis Brammanis2016-01-281-0/+2
| | | | also change the default maxZoom to 20 to match -js.
* [core] destruct WorkTask data before calling the callbackKonstantin Käfer2016-01-281-1/+1
|
* [core, ios, osx] Tilt around visual center pointMinh Nguyễn2016-01-261-0/+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.
* [ios] Bifocal viewport in course tracking modeMinh Nguyễn2016-01-261-0/+40
| | | | When a targetCoordinate is specified in course tracking mode, the map automatically resizes the viewport to show both the user puck and the target, one at the top and the other at the bottom. The user puck now rotates its arrow in the course direction, no longer assuming that the viewport is facing the same way as the course.
* [ios] Various user tracking mode fixesMinh Nguyễn2016-01-261-1/+21
| | | | | | | | | | Setting the user tracking mode without animation now works. Previously, it kept the user dot from ever updating. Just as a zoom gesture no longer kicks the user out of user tracking mode, programmatically zooming shouldn’t either. Setting a camera with an invalid center coordinate no longer attempts to change the center coordinate but still changes any other valid properties. Made animation to new user dot vertical alignment optional.
* Cleanup std::chrono usageBruno de Oliveira Abinader2016-01-251-2/+2
| | | | Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
* [core] Include prior values of caching headers in ResourceJohn Firebaugh2016-01-222-14/+15
| | | | This allows the FileSource interface itself to support revalidation. We could (and probably should) now rewrite HTTPContextBase implementations as FileSource implementations.
* [core] Remove unused parts of chrono.hppJohn Firebaugh2016-01-221-25/+0
|
* [core] Polyfill std::chrono::absJohn Firebaugh2016-01-221-0/+8
|
* [core] Merge rfc1123, iso8601, and parse_date into chrono.hpp and fix their APIJohn Firebaugh2016-01-223-62/+13
|
* [core] Use better types for modified / expires / etagJohn Firebaugh2016-01-211-3/+4
|
* [core] Eliminate Response::stale and inline Response::isExpired()John Firebaugh2016-01-211-5/+0
| | | | Response::isExpired() had subtle and potentially confusing behavior around Seconds::zero(). It's best to inline it and comment why.
* [ios, osx] Optionally animate content insets changeMinh Nguyễn2016-01-202-1/+48
|
* [ios] Made user dot position configurableMinh Nguyễn2016-01-201-0/+28
| | | | The user dot or user puck’s position is now configurable via a new alignment property in any user tracking mode. Also, -setUserTrackingMode:animated: is now exposed publicly, and setting its animated parameter to NO skips the initial animation.
* [core] Add ref counting to the main loopThiago Marcos P. Santos2016-01-201-0/+3
| | | | | | | | Should not be used at all, added for a corner case on OSX network backend where the request is processed on a worker thread managed by OSX and we need to wait for that reply before destroying the thread that pushed the request.
* Revert "Revert WebP support due to broken builds"Bruno de Oliveira Abinader2016-01-201-0/+5
| | | | | | | This reverts commit 6709bdcacd5a45a10b554f3f225206c9494e5e43. There was an issue with the script that removes '-lwebp' from WebP linker flags, since we're statically linking. This is now fixed.
* [core][ios][osx][android] make SpriteImage accept PremultipliedImageAnsis Brammanis2016-01-191-14/+6
| | | | | | | | | | | | 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] Use experimental optional instead of mapbox::util::optionalJohn Firebaugh2016-01-192-12/+24
|
* Revert WebP support due to broken buildsJohn Firebaugh2016-01-191-5/+0
| | | | This reverts commits 2010fbb0e61cbe7c0b08560118ca887fc1d7193e, a361ce47a19d37b96b48cd605c62c5ab79bba462, and d004bb275ae3ea60bb6c2febd6fa22f1f51c3993.
* [linux] Added WebP tile supportBruno de Oliveira Abinader2016-01-191-0/+5
| | | | | | | - Android support is currently disabled due to a libwebp build issue. - iOS and OS X support will appear after the next Mapbox iOS SDK release. Related: #https://github.com/mapbox/mapbox-gl-native/issues/2354
* [ios] Flip points, not edge insetsMinh Nguyễn2016-01-181-2/+0
|
* [ios] Account for top/bottom barsMinh Nguyễn2016-01-181-0/+16
|
* [core, osx] Added optional padding to convenience methodsMinh Nguyễn2016-01-181-2/+6
| | | | 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-0/+25
| | | | 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.
* [core] Added padding option to CameraOptionsMinh Nguyễn2016-01-183-8/+40
| | | | | | Moved EdgeInsets to geo.hpp so CameraOptions and Transform can refer to it. Added a padding option to CameraOptions that alters the frame of reference for the center option. Added optional padding parameters to LatLng getters and setters. Working towards #2600.
* [core] use stale glyphsKonstantin Käfer2016-01-151-1/+3
| | | | Updating glyphs is still unsupported, and there's no good use case for doing so. When we're using a stale glyph PBF, and the fresh answer contains changed to that glyph, we will continue to use the old glyph.
* [ios] Fixed static analyzer warningsMinh Nguyễn2016-01-141-1/+1
|
* [osx] Fixed static analyzer warningsMinh Nguyễn2016-01-141-1/+1
|
* [core] Add an explicit "not modified" indicator to ResponseJohn Firebaugh2016-01-141-0/+3
|
* [core] Eliminate FileCache interfaceJohn Firebaugh2016-01-142-30/+3
| | | | There is only one implementation and we're unlikely to add more.