summaryrefslogtreecommitdiff
path: root/src/mbgl/map
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix non-anchored Transform::setAngleBruno de Oliveira Abinader2016-03-111-1/+1
| | | | | This reverts a line change from b33b2f15, because we explicitely want the anchor to be invalid.
* [core] Fix screen coordinates when crossing the antimeridian (#2)Bruno de Oliveira Abinader2016-03-111-1/+1
| | | | Added missing case. Really fixes #4155 this time.
* [core] Fix screen coordinates when crossing the antimeridianBruno de Oliveira Abinader2016-03-101-1/+15
| | | | | | | | | If the center and point coordinates are not in the same side of the antimeridian, we need to unwrap the point longitude to make sure it can still be seen from the visible side of the antimeridian that is opposite to the center side. Fixes #4155.
* [core] Extra checks in TransformBruno de Oliveira Abinader2016-03-101-1/+5
|
* [core] Check for NaNs in EdgeInsetsBruno de Oliveira Abinader2016-03-102-15/+14
|
* [core] Added Transform::getScreenCoordinateBruno de Oliveira Abinader2016-03-102-13/+19
|
* [core] Remove _validPoint from Transform codeBruno de Oliveira Abinader2016-03-101-11/+3
| | | | vec2<T>::operator bool() checks for NaNs already.
* [core] Coordinate wrapping fixesBruno de Oliveira Abinader2016-03-103-36/+19
| | | | | | | | | | | | | | | - 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] cancel TileID::overscaling()Konstantin Käfer2016-03-081-2/+2
|
* Fixes an issue where rendering without Vertex Array Objects would cause a ↵Henry Dooley2016-03-041-3/+3
| | | | massive slowdown in the driver on Nvidia hardware. Unconfirmed if the issue is present on other GPUs.
* [core] Reset pitch in Map::resetPositionBruno de Oliveira Abinader2016-03-031-0/+1
|
* [core] Use TransformState::worldSize() whenever possibleBruno de Oliveira Abinader2016-03-032-7/+7
|
* [core] Simplify TransformState::moveLatLngBruno de Oliveira Abinader2016-03-031-2/+2
|
* [core] Fix style cascade loop when transitioningBruno de Oliveira Abinader2016-03-031-1/+1
|
* [core] Avoid precompute overscaling for TileIDBruno de Oliveira Abinader2016-03-012-14/+18
| | | | Plus type change for zoom and removed redundant inlines.
* [core] Added DEGREES_MAX as constant valueBruno de Oliveira Abinader2016-03-013-11/+11
|
* [core] Moved TileCoordinate to tile cover scopeBruno de Oliveira Abinader2016-03-012-71/+32
|
* [core] Cleared TileCoordinate from PainterBruno de Oliveira Abinader2016-03-012-5/+5
|
* [core] Moved wrapping to LatLng scopeBruno de Oliveira Abinader2016-03-012-17/+2
| | | | Fixes a precision loss when converting unwrapped LatLngs.
* [core] PrecisionPoint is now ScreenCoordinateBruno de Oliveira Abinader2016-03-015-76/+76
|
* [core] Get rid of mbgl/util/vec4 - use vec4 from vec.hpp insteadBruno de Oliveira Abinader2016-03-012-18/+19
|
* [core] Enforce constants usageBruno de Oliveira Abinader2016-03-013-20/+20
| | | | | Use 'LATITUDE_MAX', 'LONGITUDE_MAX', 'DEG2RAD' and 'RAD2DEG' whenever possible.
* Merge branch 'release-ios-v3.1.0'Minh Nguyễn2016-02-245-2/+38
|\
| * [core, ios, osx] Only constrain after adding to a windowMinh Nguyễn2016-02-105-2/+38
| | | | | | | | | | | | 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] Thread GLObjectStore through to Holder objectsJohn Firebaugh2016-02-181-3/+1
| | | | | | | | | | | | This eliminates the reliance on ThreadContext to provide GLObjectStore, and statically enforces that GL cleanup functions happen only when GLObjectStore::performCleanup is called. With the elimination of the Map thread, this becomes important because there may be multiple GLObjectStore's per-thread, and Map will need to ensure that the correct context is active when calling GLObjectStore::performCleanup.
* | [core] Remove ThreadContext::getFileSource; instead thread FileSource throughJohn Firebaugh2016-02-182-6/+6
| |
* | [gl] Moved TexturePool to gl namespaceBruno de Oliveira Abinader2016-02-182-4/+6
| |
* | [gl] Moved GLObjectStore to gl namespaceBruno de Oliveira Abinader2016-02-182-3/+3
| |
* | [core] Add support for updating point annotationsGabriel Miklós2016-02-121-0/+5
| |
* | [core] Organize files that were in map folder betterJohn Firebaugh2016-02-1119-1952/+0
| | | | | | | | Fixes #996
* | Allow using tileSize: 512 as a switch to trade retina support for 512px ↵Young Hahn2016-02-111-1/+1
| | | | | | | | raster tiles
* | [core] Interface and implementation for offlineJohn Firebaugh2016-02-101-0/+2
| |
* | [all] Don't interpret 404s on non-tile resources as "no content"John Firebaugh2016-02-104-115/+97
| |
* | [core] Refactor tileCoverJohn Firebaugh2016-02-105-82/+37
| |
* | [core] draw clipping masks from ClipIDGenerator rather than SourcesKonstantin Käfer2016-02-102-9/+0
| |
* | [core] compute the actual clipping masks that we have to draw with getStencils()Konstantin Käfer2016-02-101-1/+3
|/
* [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] Improve LatLngBounds APIJohn Firebaugh2016-02-021-4/+4
| | | | | | | * 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-4/+0
|
* [core] Remove unusedJohn Firebaugh2016-02-021-8/+0
|
* [core] support tiles with non-4096 extentsAnsis Brammanis2016-02-024-1/+7
| | | | | 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-022-5/+0
|
* [core] Remove TransformState::getNormalizedZoomJohn Firebaugh2016-02-023-7/+2
| | | | It calculated the same value as TransformState::getZoom.
* [core] Remove unused declarationsJohn Firebaugh2016-02-021-3/+0
|
* [core] Normalize only raster source tile URLsJohn Firebaugh2016-02-011-1/+1
|
* [core] Refactor TileJSON parsing for offlineJohn Firebaugh2016-02-011-20/+19
|
* [core] Rationalize Resource initializationJohn Firebaugh2016-01-294-29/+4
|