summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* [core] Define mbgl::variant (#4833)John Firebaugh2016-04-251-3/+2
| | | For parallelism with mbgl::optional, and to avoid exposing namespaces other than `mbgl` in the public API.
* [core] Move enum type classes to implementation (#4831)John Firebaugh2016-04-251-81/+0
|
* [core] Extract Function::evaluation to a separate class (#4811)John Firebaugh2016-04-251-12/+0
| | | This allows the Function<Faded<T>> partial specialization to be eliminated, giving all property functions a consistent storage type.
* [core, ios, osx] cameraThatFitsCoordinateBoundsMinh Nguyễn2016-04-221-2/+3
| | | | | | Added an API to get a camera that you can pass into -[MGLMapView setCamera:] that fits the given coordinate bounds, by analogy with -[MKMapView regionThatFits:] or -[MKMapView mapRectThatFits:edgePadding:]. Added mbgl::Map::getCameraOptions() for getting the current camera options more conveniently.
* [core] Use the proper type for font stacksJohn Firebaugh2016-04-222-2/+12
|
* [core] PlacementType ⇢ SymbolPlacementTypeJohn Firebaugh2016-04-211-4/+4
|
* [core] JoinType ⇢ LineJoinTypeJohn Firebaugh2016-04-211-7/+7
|
* [core] CapType ⇢ LineCapTypeJohn Firebaugh2016-04-211-5/+5
|
* [core] Fix compilation warningBruno de Oliveira Abinader2016-04-201-2/+2
|
* [core] Convert MapContext to Map::Impl; eliminate indirectionJohn Firebaugh2016-04-151-19/+2
|
* [core] always set activeTexture before binding a textureAnsis Brammanis2016-04-141-0/+13
|
* [core] Remove internal threading from OnlineFileRequestJohn Firebaugh2016-04-141-6/+2
| | | | There's no need to do the work that OnlineFileRequest does on a separate thread from the DefaultFileSource thread, and having AsyncTasks proxy to other tasks across a thread boundary adds needless complexity.
* [core] Render from the main threadJohn Firebaugh2016-04-144-59/+36
| | | | Do not create a thread for the MapContext anymore.
* [core] Don't put static objects in a header file (#4707)John Firebaugh2016-04-141-25/+8
| | | This causes duplicate objects -- one for every file that includes that header.
* [android] Introduce RunLoop based on LooperThiago Marcos P. Santos2016-04-061-1/+2
| | | | Also implement a Timer and AsyncTask based on Android's Looper.
* [ios, osx, linux] Remove unused "applicationRoot" functionJohn Firebaugh2016-03-311-3/+0
|
* Merge branch 'release-ios-3.2.0-android-4.0.0'John Firebaugh2016-03-302-0/+7
|\
| * [core] Localize and simplify state for MapChangeDidFinishLoadingMap eventJohn Firebaugh2016-03-301-0/+1
| | | | | | | | Only Map needs to track this state, and it can simply be set when beginning to load a style and reset when finished.
| * [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-246-14/+22
| |
* | [core] split headless_view.cpp into implementation-specific filesKonstantin Käfer2016-03-221-2/+17
| | | | | | | | also adds a EAGL implementation for iOS
* | [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-212-0/+34
| | | | | | | | | | | | 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-182-3/+1
| |
* | [core] Remove default transition durationBruno de Oliveira Abinader2016-03-182-12/+8
| |
* | [core] s/Update::Zoom/Update/RecalculateStyle/Bruno de Oliveira Abinader2016-03-181-1/+1
| |
* | [core] Added user-defined transition properties when modifying classesBruno de Oliveira Abinader2016-03-182-3/+25
| |
* | [core] Remove MapData::defaultTransitionDelayBruno de Oliveira Abinader2016-03-181-3/+0
| |
* | [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] Harden Transform anchor & padding usageBruno de Oliveira Abinader2016-03-131-14/+15
|/ | | | | Use optional values for anchor & padding in Map and Transform functions instead of NaNs. Added unit tests to stress some edge cases.
* [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.