summaryrefslogtreecommitdiff
path: root/include/mbgl/map
Commit message (Collapse)AuthorAgeFilesLines
* [core] Return pitch bounds in degreesJuha Alanen2020-02-261-2/+2
|
* [core] Add min and max pitch optionsJuha Alanen2020-02-251-0/+16
|
* [android][core] Add `Map::latLngBoundsForCameraUnwrapped` and jni binding ↵Peng Liu2020-01-091-0/+1
| | | | | | | | | for `getVisibleCoordinateBounds`. (#16069) * [android] Add getVisibleCoordinateBounds method. * Fix Map::latLngBoundsForCamera, add Android binding for getVisibleRegionBounds. * Add unit tests for CameraToLatLngBoundsWithRotation and CameraToLatLngBoundsCrossDateLine. * Move API breaking changes to a new method name latLngBoundsForCameraUnwrapped.
* [core] Remove Map::cycleDebugOptionsBruno de Oliveira Abinader2019-12-041-1/+0
|
* [core] Add batch conversion of latLngs to/from screenCoords (#15891)zmiao2019-11-071-0/+2
| | | | | | * [core] Add batch conversion of latLng vs screenCoord * [core] Take the simple approach
* [core] Update MapObserver::onDidFinishRenderingFrame() APIMikhail Pozdnyakov2019-09-121-1/+7
|
* [core] make padding optional when camera position is requested.Łukasz Paczos2019-08-291-1/+1
| | | | When padding is not provided, the current one that's cached in the TransformState is going to be returned.
* [core] Export symbol placement update status from MapObserverMikhail Pozdnyakov2019-08-231-1/+1
|
* [core] Offset viewport center when edge insets are specifiedAleksandar Stojiljkovic2019-05-281-2/+2
| | | | | | | | | | | | | | | | | | | | | The change is implemented in TransformState::getProjMatrix, the rest of the code is making sure that existing API contracts stay and there are tests verifyingrendering and render query processing only items within screen and given tolerance around screen edges. MapView: don't bake edge insets into relalculated camera center. Keep edge insets as property of camera in TransformState (similar to pitch, zoom, bearing) independent from specified camera center. Interpolate edge insets in animation. iOS Demo app: "Turn On/Off Content Insets" pitch the camera and navigate to convenient location in Denver, where streets are parallel to cardinal directions, to illustrate viewport center offset when edge insets are set. Tests: ViewFrustumCulling: although Annotations are deprecated, queryRenderedFeatures related tests in Annotations would need to get ported and decided to add the edge insets related query tests next to them. Verify frustum culling (render+queryRenderedFeatures) With different camera and edge insets setups. TODO: port Annotations tests. Transform.Padding: Verify that coordinates take proper place on screen after applying edge insets. LocalGlyphRasterizer: verify text rendering when applying padding. Related to #11882: both use projection matrix elements [8] and [9]. Alternative approach to this was to increase and offset map origin so that the screen would be a sub-rectangle in larger map viewport. This approach has a drawback of unecessary processing the items that are outside screen area. Fixes #12107, #12728, navigation-sdks/issues/120
* [core] Forward ImageManagerObserver::onRemoveUnusedStyleImages to ↵Alexander Shalamov2019-05-211-0/+3
| | | | MapObserver interface
* [core] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-101-2/+0
| | | | | | | | | | - Do not carry it over everywhere as parameter, it is a shared instance anyway and the lifecycle is pretty much the app lifecycle from the moment we instantiate a map. - Rename to BackgroundScheduler because it is a Scheduler that will do tasks in the background, we don't make assumptions if it is a thread pool or a single thread. - Most importantly, remove the dependency from `core` on `platform`.
* [core] move depth/stencil buffer debug viz to gfx::ContextKonstantin Käfer2019-04-051-3/+0
|
* add onStyleImageMissing to allow dynamically loaded or generated images (#14253)Ansis Brammanis2019-04-021-0/+2
| | | Also make `Style#updateImage(...)` much faster when the image doesn't change size. This can be useful for asynchronously generating images.
* [core] Include pixelRatio property in MapOptionsSudarsana Babu Nagineni2019-03-282-1/+15
| | | | Move pixelRatio property from Map constructor to MapOptions.
* [core] Add setter/getter for size property in MapOptionsSudarsana Babu Nagineni2019-03-282-5/+17
|
* [core] Add interface to change the orientation through MapOptionsSudarsana Babu Nagineni2019-03-282-4/+18
|
* [core] Add getter for Map optionsSudarsana Babu Nagineni2019-03-281-5/+2
| | | | | Instead of having individual getter for each Map option, add a common getter for all Map options.
* [core] ResoureOptions explicit copy via clone()Bruno de Oliveira Abinader2019-03-251-2/+1
|
* [core] Fix signature of fluent interface settersBruno de Oliveira Abinader2019-03-231-4/+4
|
* [core] Replace shared_ptr with unique_ptr in {Map,Resource}OptionsBruno de Oliveira Abinader2019-03-221-9/+12
|
* [core] Remove file source from public Map ctorBruno de Oliveira Abinader2019-03-202-52/+8
|
* [core] Group Map LatLngBounds, min and max zoom methodsAnder Conselvan de Oliveira2019-03-142-7/+40
| | | | | | | | Group bounds, minimum and maximum zoom related methods together using the new BoundOptions. v2: Document that getBounds() initializes all optional fields. - Add test for getBounds() on a map with default values.
* [core] Remove optional from Map::setLatLngBounds()Ander Conselvan de Oliveira2019-03-141-2/+2
| | | | | | | | This is a first step into grouping together bounds related Map methods into one that takes a "BoundOptions" object. LatLngBounds::unbounded() replaces an undefined optional<LatLngBounds>. v2: Document LatLngBounds::unbounded()
* [core] Remove support for setting minimum and maximum pitchAnder Conselvan de Oliveira2019-03-141-4/+0
| | | | | | | | | Support for limiting pitch was introduced in commit c4fc89977bcb ([core] Added {set,get}{Min,Max}Pitch) in 2017 but was never exposed by the platform SDKs. Simplify the Map interface by removing this unused feature. v2: Add util::PITCH_MIN
* [core] Don't use exceptions in MapObserver::onDidFailLoadingMapAnder Conselvan de Oliveira2019-03-131-2/+8
| | | | | | | Using different exception pointers to specify the loading failure makes an awkward API. Most users rethrow the exception only to figure out what type of error happened so it can be reported properly. So replace the exception pointer with a enum an string description of the failure.
* [core] Add MapOptions to define properties of MapSudarsana Babu Nagineni2019-03-082-4/+141
| | | | | | To simplify the Map constructor, introduce MapOptions interface to define the properties that can be set on a Map.
* [core] consolidate Axonometric rendering APISudarsana Babu Nagineni2019-03-082-7/+38
| | | | | | | Instead of having individual APIs for setting axonometric and skew options, create ProjectionMode struct that holds all the relevant options for Axonometric rendering and introduce setter/getter on the Map for those options.
* [core] Organize Map::{move,pitch,scale,rotate}ByBruno de Oliveira Abinader2019-03-041-12/+4
|
* [core] Remove map coordinate setters/gettersBruno de Oliveira Abinader2019-03-041-4/+0
|
* [core] Transform{State}: s/angle/bearing/Bruno de Oliveira Abinader2019-03-041-3/+3
|
* [core] Remove map bearing setters/gettersBruno de Oliveira Abinader2019-03-041-6/+0
|
* [core] Remove map pitch setters/gettersBruno de Oliveira Abinader2019-03-041-5/+0
|
* [core] Remove map zoom setters/gettersBruno de Oliveira Abinader2019-03-041-12/+5
|
* [core] Added Map::pitchBy()Bruno de Oliveira Abinader2019-03-041-0/+3
|
* [core] Added Map::scaleBy()Bruno de Oliveira Abinader2019-03-041-0/+1
|
* [docs] EnterIdle -> BecomeIdleChris Loer2018-12-111-1/+1
|
* [core, darwin, android] Add onDidEnterIdle to MapObserver.Chris Loer2018-12-111-0/+1
| | | | didEnterIdle fires whenever render completes and no repaint is scheduled.
* [core] Cleanup Transform, use {jump,ease}To() insteadBruno de Oliveira Abinader2018-11-271-0/+7
|
* [core] Remove error-prone setlatLng overloadBruno de Oliveira Abinader2018-11-271-1/+0
|
* [core] Camera center and anchor points are mutually exclusiveBruno de Oliveira Abinader2018-11-261-1/+4
|
* [core] CameraOptions receives and outputs angle and pitch as degrees, not ↵Bruno de Oliveira Abinader2018-10-191-3/+2
| | | | radians
* [core] Port "collision group" plumbing to gl-native.Chris Loer2018-09-121-1/+2
| | | | | [node] Hook up map-wide "crossSourceCollisions" option, defaulting to true. [test] Pass "crossSourceCollisions" test option through test harness; enable cross-source-collisions tests on native.
* Add pitch argument to cameraThatFits functions (#12213)Bobby Sudekum2018-07-021-3/+3
|
* [core] Split MapMode::Still into Static and TileAnsis Brammanis2017-11-171-1/+2
| | | | | `Tile` makes sure the symbols in the resulting tile are tileable while symbols in `Still` match rendering in `Continuous` mode.
* [core] Move GLContextMode to its own Renderer headerBruno de Oliveira Abinader2017-11-011-9/+0
|
* [core, node] Support axonometric renderingLauren Budorick2017-10-141-0/+8
|
* [core] Add `cameraForLatLngs()` method with modified bearingAsheem Mamoowala2017-10-091-3/+5
|
* [node] Cleanup NodeMap::RenderBruno de Oliveira Abinader2017-08-311-1/+2
|
* [all] Merge View into RendererBackendJohn Firebaugh2017-07-262-20/+0
|
* [core] rename backend to renderer backendIvo van Dongen2017-07-182-115/+0
|