summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* [core] Build fixThiago Marcos P. Santos2016-02-261-1/+1
| | | | Fix no viable conversion on OSX.
* [core] Add timeout for clock skewThiago Marcos P. Santos2016-02-261-0/+4
| | | | | | | | | | If the server keeps sending replies considered from the client in the past (there is no way to tell if the server or client clock is wrong), the client will try to interpolate a valid expiration time based on the delta of the expiration intervals sent by the server. If the intervals are always the same, exponential backoff kicks in until we get a different expiration time from what we already have.
* [core] Limit total number of offline Mapbox tilesJohn Firebaugh2016-02-242-0/+22
|
* [core] status.requiredResourceCountIsIndeterminate ⇢ ↵John Firebaugh2016-02-241-6/+7
| | | | | | status.requiredResourceCountIsPrecise Change the name and reverse the sense. Naming things in the positive is better than naming them in the negative.
* [core] Add a descriptive comment about maximumCacheSizeJohn Firebaugh2016-02-241-0/+7
|
* Merge branch 'release-ios-v3.1.0'Minh Nguyễn2016-02-242-0/+5
|\
| * [core, ios, osx] Only constrain after adding to a windowMinh Nguyễn2016-02-102-0/+5
| | | | | | | | | | | | 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.
* | [gl] Moved VAO helpers to common headerBruno de Oliveira Abinader2016-02-181-0/+26
| |
* | [core] Remove RunLoop::{ref,unref}John Firebaugh2016-02-161-3/+0
| |
* | [core] less slanted dashed lines near sharp cornersAnsis Brammanis2016-02-151-0/+5
| | | | | | | | port https://github.com/mapbox/mapbox-gl-js/pull/2043 from -js
* | [core] Add support for updating point annotationsGabriel Miklós2016-02-121-0/+2
| |
* | [ios, osx] Consolidate remaining files in platform/{ios,osx}John Firebaugh2016-02-1224-3024/+0
| |
* | [core] use std::move() to prevent copiesKonstantin Käfer2016-02-111-1/+1
| |
* | [core] Eliminate maximumCacheEntrySizeJohn Firebaugh2016-02-102-3/+1
| | | | | | | | Instead, the eviction policy accounts for the actual size needed for an incoming put.
* | [core] Implement an eviction policy for OfflineDatabaseJohn Firebaugh2016-02-102-20/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | When inserting an cached resource, or removing a region, remove least-recently used resources and tiles, not used by offline regions, until the used database size, as calculated by multiplying the number of in-use pages by the page size, is less than the maximum cache size minus 5 times the page size. In addition, OfflineDatabase may be configured to ignore cache puts of individual resources larger than a certain size. This policy is similar but not identical to the former SQLiteCache policy: * It accounts for offline, by exempting resources required by offline regions from eviction. * It must delete from two tables (resources and tiles), rather than one. Currently the strategy is naive: evict 50 rows at a time from each table. * It makes maximumCacheSize and maximumCacheEntrySize completely independent. The SQLiteCache implementation evicted when `usedSize > maximumCacheSize - 2 * maximumCacheEntrySize`. This evicts when `usedSize > maximumCacheSize - 5 * pageSize`. * It uses a non-unlimited default value for maximumCacheSize: 50 MB. We should have always had a limit in place; "a cache without an eviction policy is a resource leak".
* | [core] Make {Default,Online}FileSource::Impl more similarJohn Firebaugh2016-02-101-3/+0
| |
* | Add binary for smoke-testing offline downloadsJohn Firebaugh2016-02-101-0/+2
| |
* | [core] Interface and implementation for offlineJohn Firebaugh2016-02-102-0/+258
| |
* | [all] Don't interpret 404s on non-tile resources as "no content"John Firebaugh2016-02-101-0/+4
| |
* | [all] Do not set Response data for 404sJohn Firebaugh2016-02-101-1/+1
| | | | | | | | For AssetFileSource and the node FileSource this was already the case; this makes the other implementations consistent.
* | [core] Reimplement existing caching within an offline-capable database schemaJohn Firebaugh2016-02-101-6/+9
| |
* | [core] Moving caching logic to DefaultFileSourceJohn Firebaugh2016-02-103-5/+10
| | | | | | | | This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more.
* | [glfw] add "C" button to show stencil clip masksKonstantin Käfer2016-02-101-0/+5
| |
* | [core] move GL value objects from gl_config.hpp to gl_values.hppKonstantin Käfer2016-02-083-76/+287
| | | | | | | | Also removes duplicate code from gl_helper.hpp by reusing the GL values that we already have anyway.
* | [core] move util/gl_helper.hpp to gl/gl_helper.hppKonstantin Käfer2016-02-081-2/+2
| |
* | [core] move platform/gl.hpp to gl/gl.hppKonstantin Käfer2016-02-083-4/+4
|/
* [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.