summaryrefslogtreecommitdiff
path: root/src/mbgl/map/map.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Tighten LatLng and other geo.hpp classesJohn Firebaugh2017-04-061-2/+2
| | | | | * Remove LatLng::null and enforce invariants * Remove unnecessary operator bool()
* [core] Privatize OpenGL/Context headersKonstantin Käfer2017-03-281-0/+4
|
* [core] Added Map::latLngBoundsForCameraBruno de Oliveira Abinader2017-03-241-0/+11
|
* [core] Ensure that a BackendScope exists when doing GL callsKonstantin Käfer2017-03-231-1/+2
|
* [core] cache binary shaders on AndroidKonstantin Käfer2017-03-221-5/+11
|
* [core] s/onSourceDidChange/onSourceChanged/ + source refBruno de Oliveira Abinader2017-03-211-3/+3
|
* [core] Pass std::exception_ptr in MapObserver::onDidFailLoadingMapBruno de Oliveira Abinader2017-03-171-2/+2
|
* [core] Pass std::exception_ptr in style::Observer::onStyleErrorBruno de Oliveira Abinader2017-03-171-5/+9
|
* [core] Replace MapChange enum with MapObserverBruno de Oliveira Abinader2017-03-151-13/+13
|
* [core] rename query options for query rendered featuresIvo van Dongen2017-03-091-3/+3
|
* [core] Add support for queryRenderedFeatures filterAsheem Mamoowala2017-03-041-10/+11
|
* [core] [android] - allow zooming/scaling to use AnimationOptions (#8181)Tobrun2017-02-281-34/+34
| | | [glfw] - allow glfw binding to use AnimationOptions instead of using direction directly
* [core] - allow moveBy to use AnimationOptionsTobrun2017-02-201-2/+2
| | | | [android] - update jni bindings for moveBy with an interpolator
* [core] Nestable BackendScopeJohn Firebaugh2017-02-201-0/+1
|
* [core] Eliminate SpriteAtlas::updateDirtyJohn Firebaugh2017-02-141-4/+0
| | | | Simplify internal datastructures. Properly remove rects from the bin pack when an image is removed.
* [core] Expose Map::setZoom with anchor parameterJason Wray2017-02-131-1/+7
|
* [node] Temporary: exit(0) on exception in Painter::renderJohn Firebaugh2017-02-061-4/+10
| | | | Hope to get complete apitrace with a clean exit rather than an abort.
* [core] Unify update and render into a single stepJohn Firebaugh2017-01-061-82/+88
| | | | Update only when, and just prior to, rendering, giving no opportunity to interleave unexpected state changes. This means that every time anything about the state is changed, we'll have to attempt a render to reflect that change. In the case of continuous rendering this has happened before this change as well, but it leaves no room for time to pass between an update and a render. In the case of still image rendering, a render call will only actually paint something to the view when all resources have been loaded.
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-masterMinh Nguyễn2016-12-201-0/+7
|\ | | | | | | Also reran make style-code and manually discarded anything related to fill extrusion layers.
| * [core] Swap order of Style::recalculate and Style::relayoutIvo van Dongen2016-12-131-4/+4
| | | | | | | | Style::relayout uses source.baseImpl->loaded, a flag which is updated by Style::recalculate. So recalculate first, then relayout.
| * [core] use raii to guard backend deactivationIvo van Dongen2016-12-131-13/+5
| |
| * [core, ios, macos] Add image accessor to MGLStyle (#7096)Roman Blum2016-12-051-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | * [core] Add interface to get image from sprite atlas * [tests] Add tests for Map::getImage * [ios, macos] WIP: get MGLImage for name from style * [ios, macos] Fixed -imageForName: Convert from sprite images to platform images using the existing encodePNG() function, which is also used for printing. Allow -imageForName: to return nil without an assertion failure. Added a basic test.
* | [core] Swap order of Style::recalculate and Style::relayoutIvo van Dongen2016-12-121-4/+4
| | | | | | | | Style::relayout uses source.baseImpl->loaded, a flag which is updated by Style::recalculate. So recalculate first, then relayout.
* | [core] use raii to guard backend deactivationIvo van Dongen2016-12-121-13/+5
| |
* | Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.4-masterMinh Nguyễn2016-12-031-1/+9
|\ \ | |/
| * [core, ios, macos] Added layers and sources properties to MGLStyleMinh Nguyễn2016-11-281-1/+9
| | | | | | | | | | | | | | | | Added new layers and sources properties to MGLStyle that contain all the style’s layers and sources, respectively. These properties are KVC-compliant with all the mutable to-many methods. Layers are ordered from topmost to bottommost, for consistency with Cocoa APIs where front/first means top and back/last means bottom. Also added storage for mbgl::style::Source in MGLSource proper for wrapping AnnotationSource. Until the style finishes loading, its name property is set to nil. Fixes #6003.
| * [core] Return source and layer ownership (#7014)Jesse Bounds2016-11-131-5/+8
| | | | | | | | | | | | | | | | When a source or layer is removed transfer ownership back to the caller so it can (optionally) take it. Preserve the behavior that removing a CustomLayer triggers deinitialization. Deinitialize all custom layers when a style is destroyed in case those layers are not explicitly removed.
| * [core] Ensure correct GL context in Map::onLowMemory()John Firebaugh2016-11-091-0/+2
| |
* | [build] upgrade to variant 1.1.4 and dependenciesKonstantin Käfer2016-11-281-1/+2
| |
* | [build] move logging to utilKonstantin Käfer2016-11-221-1/+1
| |
* | [core] update native for line property function shaders changes (#6658)Molly Lloyd2016-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] update shaders for line property functions update deps, define device pixel ratio for all shaders [core] create ShaderParameter struct to store pixel ratio and overdraw param repair rebase errs update shaders to include pixel ratio make sure collision_box never overdraws update test suite, move shaders to Painter::render so the correct pixel ratio is applied move shader compiling back to the Painter constructor rebase from shader --> program refactor re-factor parameters for collisionBox and debug programs remove unused vars from line-program, move blur math to shader update core files remove unecessary files update shaders PR, remove comments bump test suite sha fix formatting, incorporate feedback refactor program.hpp * [core] remove line transformations that were moved to the shaders, bump shader sha * [core] shorten ProgramParameter instantiation * [core] bump shader+test suite shas
* | [core] Return source and layer ownership (#7014)Jesse Bounds2016-11-111-5/+8
| | | | | | | | | | | | | | | | When a source or layer is removed transfer ownership back to the caller so it can (optionally) take it. Preserve the behavior that removing a CustomLayer triggers deinitialization. Deinitialize all custom layers when a style is destroyed in case those layers are not explicitly removed.
* | Default Style Camera on Android (#7019)Tobrun2016-11-111-1/+0
| | | | | | | | | | | | * [core] - do not set camera mutated to true when calling Map::getLatLng * [android] - correctly check if a Map is created without a camera position
* | [core] Default camera position to that specified by the styleJohn Firebaugh2016-11-091-4/+41
| |
* | [core] Ensure correct GL context in Map::onLowMemory()John Firebaugh2016-11-091-0/+2
| |
* | Revert "[core] Don't use GL_LINEAR if panning w/o rotation nor pitch"Bruno de Oliveira Abinader2016-11-011-0/+1
| | | | | | | | This reverts commit a70bfd89108cf1aef75181819ae43e550a69255e.
* | [core] Moved util::log2 to its own headerBruno de Oliveira Abinader2016-10-311-0/+1
| | | | | | | | | | | | - 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-1/+0
| |
* | [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-271-11/+7
|/
* [core] move gl::Context to Backend and refactor ViewKonstantin Käfer2016-10-251-71/+76
|
* [core] separate Backend from View for headless renderingKonstantin Käfer2016-10-251-30/+59
|
* [core] [node] pass thread pool impl to Map constructorMike Morris2016-10-201-7/+8
| | | | | | | Updates mbgl::Map constructor usage everywhere Adds NodeThreadPool implementation using AsyncQueue to call Nan::AsyncQueueWorker from main thread
* [core] Skip duplicated IDs when querying point annotationsBruno de Oliveira Abinader2016-10-121-3/+5
|
* [core] Fix Map::setLatLng behaviorBruno de Oliveira Abinader2016-10-071-1/+1
| | | | | We were erroneously assigning a value to optional<ScreenCoordinate> (null island), causing it to be a valid anchor for Transform::easeTo.
* [core] Refactor BufferJohn Firebaugh2016-10-051-0/+1
|
* [core] remove dependence on gl.h typesKonstantin Käfer2016-09-291-2/+2
|
* [core] merge gl::ObjectStore into gl::ContextKonstantin Käfer2016-09-271-11/+11
|
* [core, qt] Generalized source change notificationMinh Nguyễn2016-09-261-1/+1
| | | | This same notification can in the future be used for other changes to a source.
* [core] Removed map attribution APIMinh Nguyễn2016-09-261-4/+0
| | | | Since client code can readily access the individual sources, Map doesn’t need to expose a dedicated API for iterating over them.
* [core] Source-driven attributionMinh Nguyễn2016-09-261-0/+9
| | | | | | Implemented observer callbacks so the style knows when the source’s attribution changes and the map knows when the style’s attribution changes. Also implemented a getter for a tile source’s attribution. Fixes #2723.