summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* [core] Assert and guard against null std::exception_ptr in toStringJohn Firebaugh2016-03-161-0/+6
| | | | We don't expect toString to be called with a null std::exception_ptr. But if it is, we'd prefer not to terminate the process in release builds.
* [core] Make vec{2,3,4} operator bool explicitBruno de Oliveira Abinader2016-03-111-6/+6
|
* [core] Check for NaNs in EdgeInsetsBruno de Oliveira Abinader2016-03-101-2/+3
|
* [core] Remove _validPoint from Transform codeBruno de Oliveira Abinader2016-03-101-0/+25
| | | | vec2<T>::operator bool() checks for NaNs already.
* [core] Coordinate wrapping fixesBruno de Oliveira Abinader2016-03-103-18/+28
| | | | | | | | | | | | | | | - Make returning LatLngs unwrapped by default. - PointAnnotation and ShapeAnnotation are always wrapped so they can be selected via intersection from the visible tile boundaries. - Fixes LatLng::wrap() calculation. - Fixes LatLng::unwrapForShortestPath() calculation. The new unwrapForShortestPath algorithm unwraps the start coordinate either forwards or backwards depending on the end coordinate value, so we can always cross the antimeridian when needed and still obtain a wrapped end coordinate in the end. Fixes #4214.
* [core] Remove goOffline() from DefaultFileSourceThiago Marcos P. Santos2016-03-082-3/+2
| | | | Use the newly added NetworkStatus::Set().
* [core] Add client defined network statusThiago Marcos P. Santos2016-03-081-0/+10
| | | | | | | | This API will let the client force a network status. If set to Offline, we won't make network requests. When set make to Online, it will trigger the pending requests and try to fetch tiles from the network.
* [core] explicitly initialize a few fields to nullKonstantin Käfer2016-03-043-5/+5
|
* [core] Regression fix in LatLng::unwrapForShortestPathBruno de Oliveira Abinader2016-03-031-1/+5
| | | | | | | When porting this from Transform::unwrapLatLng, I forgot to check for the second alternative. Fixes #4174.
* [core] Avoid precompute overscaling for TileIDBruno de Oliveira Abinader2016-03-011-0/+5
| | | | Plus type change for zoom and removed redundant inlines.
* [core] Added DEGREES_MAX as constant valueBruno de Oliveira Abinader2016-03-012-1/+2
|
* [core] Moved wrapping to LatLng scopeBruno de Oliveira Abinader2016-03-011-4/+22
| | | | Fixes a precision loss when converting unwrapped LatLngs.
* [core] PrecisionPoint is now ScreenCoordinateBruno de Oliveira Abinader2016-03-013-13/+13
|
* [core] Get rid of mbgl/util/vec4 - use vec4 from vec.hpp insteadBruno de Oliveira Abinader2016-03-012-3/+7
|
* [core] Coordinate is now GeometryCoordinateBruno de Oliveira Abinader2016-03-011-2/+0
| | | | | Also introduced GeometryCoordinates (vector of GeometryCoordinate items), to better cope with GeometryCollection.
* [core] Enforce constants usageBruno de Oliveira Abinader2016-03-011-0/+1
| | | | | Use 'LATITUDE_MAX', 'LONGITUDE_MAX', 'DEG2RAD' and 'RAD2DEG' whenever possible.
* [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
|