summaryrefslogtreecommitdiff
path: root/src/mbgl/map/map.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add FreeCameraOptions to the Map classMikko Pulkki2020-05-021-0/+10
|
* [core] Fix modernize-return-braced-init-list errorsThiago Marcos P. Santos2020-03-231-1/+1
| | | | As reported by clang-tidy-8.
* [core] Fix performance-unnecessary-value-param errorsThiago Marcos P. Santos2020-03-231-13/+24
| | | | As reported by clang-tidy-8.
* [core] FileSourceManager::getFileSource() returns PassRefPtrMikhail Pozdnyakov2020-02-261-1/+3
|
* [core] Return pitch bounds in degreesJuha Alanen2020-02-261-2/+2
|
* [core] Add min and max pitch optionsJuha Alanen2020-02-251-1/+19
|
* [core] Modularize FileSource codebase (#15768)Alexander Shalamov2020-01-131-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] Introduce FileSourceManager and use it for default platform impl - Add `FileSourceManager` interface that provides access to `FileSource` instances and means of registering / unregistering `FileSource` factories - Split `DefaultFileSource` into smaller parts - Add `DatabaseFileSource` interface and it's default implementation - Remove inter-dependencies between concrete `FileSource` classes * [build] Add files to next build system * [core] Add generic property setters / getters * [core] Remove setOnlineStatus from OnlineFileSource interface * [core] Hide threading implementation details from DatabaseFileSource interface * [core] Make DB file source methods virtual * [core] Add documentation for DatabaseFileSource and rename one method * [core] Use simple callback instead of ActorRef * [core] Remove ActorRef from OnlineFileSource public header * [core] Add callback to FileSource::forward async API * [core] Pass OfflineRegionDefinition by value * [core] Update tests to use modular file sources * [core] Update unit tests * [core] Update unit tests after rebase * [core] Backport low prio fix for cached requests * [core] Backport pack database * [core] Return removed factory from unRegisterFileSourceFactory * [core] Rename shadowed args in onlinefilesource * [core] Remove simple std::function callback aliases * [core] Expose online file source property keys in public header file * [test-runner] Add proxy file source test runner * [cache] Update mbgl-cache utility to use new file source * [metrics] Rebaseline binary size metrics * [offline] Update offline utility * [core] Update changelog
* [android][core] Add `Map::latLngBoundsForCameraUnwrapped` and jni binding ↵Peng Liu2020-01-091-0/+21
| | | | | | | | | 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.
* Include padding when testing camera scale in cameraForLatLngBoundsAleksandar Stojiljkovic2019-12-171-1/+4
| | | | | Repurpose LatLngBoundsToCameraWithBearingAndPitch to test scaling and camera setup, both with and without padding. This adds testing of path not covered in mapbox/mapbox-gl-native-ios#59.
* correct insets camera management - see ↵Romain Quidet2019-12-171-16/+3
| | | | https://github.com/mapbox/mapbox-gl-native-ios/issues/59
* [core] Remove Map::cycleDebugOptionsBruno de Oliveira Abinader2019-12-041-24/+0
|
* [core] Add batch conversion of latLngs to/from screenCoords (#15891)zmiao2019-11-071-0/+18
| | | | | | * [core] Add batch conversion of latLng vs screenCoord * [core] Take the simple approach
* [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] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-101-3/+1
| | | | | | | | | | - 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] clang-tidy fixesKonstantin Käfer2019-04-051-1/+1
|
* [core] Include pixelRatio property in MapOptionsSudarsana Babu Nagineni2019-03-281-4/+5
| | | | Move pixelRatio property from Map constructor to MapOptions.
* [core] Add setter/getter for size property in MapOptionsSudarsana Babu Nagineni2019-03-281-16/+4
|
* [core] Add interface to change the orientation through MapOptionsSudarsana Babu Nagineni2019-03-281-5/+2
|
* [core] Add getter for Map optionsSudarsana Babu Nagineni2019-03-281-6/+8
| | | | | Instead of having individual getter for each Map option, add a common getter for all Map options.
* [core] harden fetching camera for bounds when padding is excessiveŁukasz Paczos2019-03-251-2/+7
|
* [core] Remove file source from public Map ctorBruno de Oliveira Abinader2019-03-201-3/+6
|
* [core] Cleanup Map::Impl ctorBruno de Oliveira Abinader2019-03-201-17/+5
|
* [core] Group Map LatLngBounds, min and max zoom methodsAnder Conselvan de Oliveira2019-03-141-22/+27
| | | | | | | | 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-3/+3
| | | | | | | | 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-22/+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] Add MapOptions to define properties of MapSudarsana Babu Nagineni2019-03-081-8/+5
| | | | | | 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-081-22/+4
| | | | | | | 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-17/+9
|
* [core] Remove map coordinate setters/gettersBruno de Oliveira Abinader2019-03-041-19/+1
|
* [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-20/+0
|
* [core] Remove map pitch setters/gettersBruno de Oliveira Abinader2019-03-041-18/+4
|
* [core] Remove map zoom setters/gettersBruno de Oliveira Abinader2019-03-041-34/+5
|
* [core] Added Map::pitchBy()Bruno de Oliveira Abinader2019-03-041-0/+6
|
* [core] Added Map::scaleBy()Bruno de Oliveira Abinader2019-03-041-0/+5
|
* [core] Move Map::Impl to its own def/impl filesBruno de Oliveira Abinader2019-02-271-213/+5
|
* [docs] EnterIdle -> BecomeIdleChris Loer2018-12-111-1/+1
|
* [core, darwin, android] Add onDidEnterIdle to MapObserver.Chris Loer2018-12-111-0/+2
| | | | didEnterIdle fires whenever render completes and no repaint is scheduled.
* [core] layermanager folderMikhail Pozdnyakov2018-11-301-0/+1
| | | | Move `LayerManager` and `LayerFactory` abstract classes to a dedicated folder.
* [core] LayerManager can disable annotationsMikhail Pozdnyakov2018-11-281-13/+30
| | | | | | | | | | | | | At the moment, the annotations implementation in the `mapbox-gl-native` core is creating concrete layer instances apart from `LayerManager/LayerFactory` code path. So, annotations must be disabled if the `LayerManager` implementation does not provide line, fill or symbol layers (those, used by the annotations). Note: in future, annotations implementation will be moved from the core to the platform SDK level(see https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation) and `LayerManager` won't need to disable it.
* [core] Cleanup Transform, use {jump,ease}To() insteadBruno de Oliveira Abinader2018-11-271-64/+26
|
* [core] Remove error-prone setlatLng overloadBruno de Oliveira Abinader2018-11-271-7/+1
|
* [core] CameraOptions receives and outputs angle and pitch as degrees, not ↵Bruno de Oliveira Abinader2018-10-191-2/+2
| | | | radians
* [core] Port "collision group" plumbing to gl-native.Chris Loer2018-09-121-5/+12
| | | | | [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.
* [android] add support for gnustlKonstantin Käfer2018-09-111-1/+1
|
* Add pitch argument to cameraThatFits functions (#12213)Bobby Sudekum2018-07-021-13/+24
|
* [core] don't use floating point versions of pow/logKonstantin Käfer2018-06-041-1/+1
| | | | | | GLIBC 2.27 added new versioned symbols of powf and logf, while the double versions of pow and log remained stable. Prefer the double version to avoid introducing a dependency on a newer version of GLIBC than strictly necessary. See https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00000.html
* Merge branch 'release-boba' into masterupstream/fabian-merge-v4.0.0Fabian Guerra2018-04-231-1/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # circle.yml # include/mbgl/style/expression/let.hpp # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/LatLngBounds.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapKeyListener.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Projection.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Transform.java # platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/geometry/LatLngBoundsTest.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml # platform/android/gradle/dependencies.gradle # platform/android/src/example_custom_layer.cpp # platform/android/src/geojson/point.cpp # platform/darwin/src/NSPredicate+MGLAdditions.mm # platform/darwin/test/MGLExpressionTests.mm # platform/ios/Mapbox-iOS-SDK-nightly-dynamic.podspec # platform/ios/Mapbox-iOS-SDK-symbols.podspec # platform/ios/Mapbox-iOS-SDK.podspec # platform/ios/app/MBXViewController.m # src/mbgl/renderer/layers/render_custom_layer.cpp # src/mbgl/style/conversion/filter.cpp # src/mbgl/style/expression/interpolate.cpp # src/mbgl/style/expression/value.cpp # test/style/filter.test.cpp
| * [android] calculating camera's LatLng for bounds without map padding (#11410)Łukasz Paczos2018-03-081-1/+0
| |
* | [core] prevent render thread from waking up unneeded on still renderingIvo van Dongen2018-03-141-0/+5
|/ | | | - No longer sends a update message to the render frontend when rendering in still mode only to shortcut it in the renderer. This prevents unneeded render passes in qt.