summaryrefslogtreecommitdiff
path: root/include/mbgl/util
Commit message (Collapse)AuthorAgeFilesLines
...
* [core] Inline LatLng::project definition the one place it's usedJohn Firebaugh2016-05-051-2/+0
|
* [core] Privatize math.hpp and vec.hppJohn Firebaugh2016-05-054-287/+2
|
* [core] Privatize various util headers (#4945)John Firebaugh2016-05-044-142/+0
|
* [core] Use geometry.hpp feature typeJohn Firebaugh2016-05-031-0/+19
|
* [core] Replace boost::lexical_cast with std::to_stringJohn Firebaugh2016-05-021-25/+7
| | | | This removes the only boost dependency from public headers.
* [core] Remove duplicate copy of utf.hppJohn Firebaugh2016-05-021-25/+0
|
* [core] Remove unusedJohn Firebaugh2016-05-021-24/+0
|
* [core] implement queryRenderedFeaturesAnsis Brammanis2016-04-291-0/+17
|
* [core] Added mbgl::underlying_typeBruno de Oliveira Abinader2016-04-281-0/+15
|
* [core] Fix compilation warningBruno de Oliveira Abinader2016-04-201-2/+2
|
* [android] Introduce RunLoop based on LooperThiago Marcos P. Santos2016-04-061-1/+2
| | | | Also implement a Timer and AsyncTask based on Android's Looper.
* Merge branch 'release-ios-3.2.0-android-4.0.0'John Firebaugh2016-03-301-0/+6
|\
| * [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] Unify FileRequest and WorkRequestJohn Firebaugh2016-03-243-5/+17
| |
* | [test] remove crc64 and compare imagesKonstantin Käfer2016-03-221-0/+7
| | | | | | | | boost's crc64 breaks on iOS
* | [glfw] Main loop integrationThiago Marcos P. Santos2016-03-211-0/+29
| | | | | | | | | | | | This new code can be used for rendering on the Main thread while it will also work for rendering on the Map thread before we make the switch. Needed by #2909.
* | [core] Default fade duration is now a constantBruno de Oliveira Abinader2016-03-181-0/+1
| |
* | [core] Check for NaNs in mbgl::util::{min,max,clamp}Bruno de Oliveira Abinader2016-03-182-20/+22
| |
* | [core] use constexpr constantsKonstantin Käfer2016-03-161-17/+28
| |
* | [core] Simplify LatLng::unwrapForShortestPath usageBruno de Oliveira Abinader2016-03-141-9/+8
| | | | | | | | | | | | | | | | | | | | Simplify LatLng::{wrap,unwrapForShortestPath} code, avoiding duplicated code between Transform::{latLngToScreenCoordinate,easeTo,flyTo}. Added unit tests for camera usage in Transform to detect cases like e.g. crossing the antimeridian as a shortest path between two coordinates. Transform::flyTo precision loss to be handled in #4298.
* | [core] Implement LatLng::null()Bruno de Oliveira Abinader2016-03-131-0/+4
|/
* [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-101-13/+11
| | | | | | | | | | | | | | | - 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] 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-011-3/+3
|
* [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] 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] Eliminate maximumCacheEntrySizeJohn Firebaugh2016-02-101-1/+0
| | | | Instead, the eviction policy accounts for the actual size needed for an incoming put.
* [core] Implement an eviction policy for OfflineDatabaseJohn Firebaugh2016-02-101-0/+3
| | | | | | | | | | | | | 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] move util/gl_helper.hpp to gl/gl_helper.hppKonstantin Käfer2016-02-081-90/+0
|
* [core] move platform/gl.hpp to gl/gl.hppKonstantin Käfer2016-02-081-1/+1
|
* [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 superflous inlinesJohn Firebaugh2016-02-021-18/+18
|
* [core] Remove unusedJohn Firebaugh2016-02-021-4/+0
|
* [core] Remove unusedJohn Firebaugh2016-02-021-10/+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.
* [core] Don't use structJohn Firebaugh2016-02-011-5/+10
| | | | It makes forward declarations inconsistent and liable to change, for no real gain.