summaryrefslogtreecommitdiff
path: root/src/mbgl/map/transform_state.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] TransformState::getIntegerZoom should be uint8_tBruno de Oliveira Abinader2017-09-151-1/+1
|
* [core] Improved label pitch-scaling: approximate collision box shapes based ↵Chris Loer2017-07-111-0/+12
| | | | on tile distance from camera.
* [core] Clamp to scale boundaries in TransformState::setLatLngZoomBruno de Oliveira Abinader2017-06-281-1/+1
|
* [core] Make TransformState LatLngBounds optionalBruno de Oliveira Abinader2017-06-011-6/+11
|
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-271-3/+6
|
* [all] Remove redundant scale-related camera methodsJohn Firebaugh2017-04-131-4/+0
| | | | We don't need to have two different measurement systems for map zoom.
* [core] Added {set,get}{Min,Max}PitchBruno de Oliveira Abinader2017-04-111-0/+19
|
* [core] Added Map::{get,set}LatLngBoundsBruno de Oliveira Abinader2017-04-111-2/+13
|
* [core] Move {Map,Transform}::{get,set}{Min,Max}Zoom to bounds pragmaBruno de Oliveira Abinader2017-04-111-0/+2
|
* [core] Updated Size::isEmpty and TransformState::valid checksBruno de Oliveira Abinader2017-04-101-2/+5
|
* [all] Make LatLng coordinates read-onlyJohn Firebaugh2017-04-061-2/+2
|
* [core] fix matrix z range and remove hackAnsis Brammanis2016-12-211-3/+6
| | | | | | | ported from -js: 0b5520fa5ab2a4659d80dcffa8b035a0d84fe1ca This should fix the issue behind #2270 and remove the need for the hack added in #3740.
* [core, ios] replace `altitude` with `fov`Ansis Brammanis2016-12-211-14/+20
| | | | | | | | | ported from -js: eb6c6596c6a7a61363d30356674e0002153b1d19 `altitude` was a terribly-named variable that was used to indirectly control the fov. This should eliminate some confusion. `altitude` was equivalent to `cameraToCenterDistance / height`
* [core] Use double in TransformState::zoomScaleBruno de Oliveira Abinader2016-11-271-1/+1
|
* Revert "[core] Don't use GL_LINEAR if panning w/o rotation nor pitch"Bruno de Oliveira Abinader2016-11-011-0/+4
| | | | This reverts commit a70bfd89108cf1aef75181819ae43e550a69255e.
* [core] Cleanup TransformState::getIntegerZoomBruno de Oliveira Abinader2016-10-311-1/+1
|
* [core] Moved util::log2 to its own headerBruno de Oliveira Abinader2016-10-311-2/+2
| | | | | | - Added util::{MIN,MAX}_ZOOM_F to avoid consecutive conversions from double to float - Move util::log2 to its own header (part of mbgl/math)
* [core] Don't use GL_LINEAR if panning w/o rotation nor pitchBruno de Oliveira Abinader2016-10-311-4/+0
|
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-271-22/+20
|
* [core] Move TransformState::{un,}project() to ProjectionBruno de Oliveira Abinader2016-10-191-22/+6
|
* [core] Move TransformState::worldSize() to ProjectionBruno de Oliveira Abinader2016-10-191-12/+8
|
* [core] Fix matrix when panning around the worldBruno de Oliveira Abinader2016-07-121-1/+1
| | | | Partially reverts commit 1d46e83.
* [core] code style cleanupsKonstantin Käfer2016-07-011-3/+3
| | | | | | | - puts function definitions in a namespace ... {} rather than using namespace ...; - remove trailing whitespace - add trailing newline - protect SQL statements from being formatted by clang-format
* [core] Use the right types for zoom scale logicBruno de Oliveira Abinader2016-06-281-3/+3
| | | | | | | 32 bit integers should be enough for zoom scale logic. In shape annotation logic, 'maxAmountOfTileFeatures' requires 64 bits because we are multiplying the zoom scale with the extent, which might give a number higher than std::numeric_limits<uint32_t>::max().
* [android] #5254 - fix ARMv5 supportThiago Marcos P. Santos2016-06-061-1/+1
| | | | Backported patches fixing ARMv5 support for issue #3985.
* [core] Avoid NaNs in TransformState unit conversionsBruno de Oliveira Abinader2016-05-201-0/+8
| | | | | Fix cases where e.g. state has either zero width or height, causing the unit convertion functions would return NaNs.
* [core] Rewrite TileCoordinate in terms of geometry.hpp pointJohn Firebaugh2016-05-171-39/+26
|
* [core] Added Viewport modeBruno de Oliveira Abinader2016-05-111-2/+10
| | | | | | Satisfies embedding platforms that requires the viewport coordinate systems to be set according to its standards e.g. viewport mirrored vertically.
* [core] move Painter and dependents to new *TileID classesKonstantin Käfer2016-05-101-5/+7
|
* [core] Use geometry.hpp's pointJohn Firebaugh2016-05-051-19/+17
|
* [core] Privatize math.hpp and vec.hppJohn Firebaugh2016-05-051-0/+1
|
* [core] Coordinate wrapping fixesBruno de Oliveira Abinader2016-03-101-29/+2
| | | | | | | | | | | | | | | - 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] Use TransformState::worldSize() whenever possibleBruno de Oliveira Abinader2016-03-031-5/+5
|
* [core] Simplify TransformState::moveLatLngBruno de Oliveira Abinader2016-03-031-2/+2
|
* [core] Added DEGREES_MAX as constant valueBruno de Oliveira Abinader2016-03-011-8/+8
|
* [core] Moved TileCoordinate to tile cover scopeBruno de Oliveira Abinader2016-03-011-62/+30
|
* [core] PrecisionPoint is now ScreenCoordinateBruno de Oliveira Abinader2016-03-011-8/+8
|
* [core] Get rid of mbgl/util/vec4 - use vec4 from vec.hpp insteadBruno de Oliveira Abinader2016-03-011-17/+19
|
* [core] Enforce constants usageBruno de Oliveira Abinader2016-03-011-14/+14
| | | | | Use 'LATITUDE_MAX', 'LONGITUDE_MAX', 'DEG2RAD' and 'RAD2DEG' whenever possible.
* Merge branch 'release-ios-v3.1.0'Minh Nguyễn2016-02-241-2/+10
|\
| * [core, ios, osx] Only constrain after adding to a windowMinh Nguyễn2016-02-101-2/+10
| | | | | | | | | | | | 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.
* | [core] Refactor tileCoverJohn Firebaugh2016-02-101-13/+0
|/
* [core] #509 - Creating and using MIN_ZOOM and MAX_ZOOM constantsBrad Leege2016-02-031-2/+2
|
* [core] #509 - Adding min / max checks to parameters and refactoring to ↵Brad Leege2016-02-031-14/+4
| | | | utilize clamp function
* [android][core] #509 - Setting Min and Max Zooms warning annotations in ↵Brad Leege2016-02-031-2/+16
| | | | Android. Clamping Min and Max zooms at Core GL for all platforms to use at runtime.
* [core] support tiles with non-4096 extentsAnsis Brammanis2016-02-021-1/+1
| | | | | Convert all geometries to the maximum extent supported by our buffers and then use that constant extent everywhere else.
* [core] Simplify latLngToCoordinate calculationJohn Firebaugh2016-02-021-5/+3
|
* [core] Remove unusedJohn Firebaugh2016-02-021-4/+0
|
* [core] Remove TransformState::getNormalizedZoomJohn Firebaugh2016-02-021-4/+0
| | | | It calculated the same value as TransformState::getZoom.
* [core] add setMaxZoom, setMinZoomAnsis Brammanis2016-01-281-0/+8
| | | | also change the default maxZoom to 20 to match -js.