| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
The speed and curve fields in CameraOptions have been replaced with velocity and minZoom fields, which expressed in screen units. Scaling and easing make it difficult to derive options that are expressed in physical units.
|
|
|
|
|
|
|
|
| |
Rewrote the flyTo implementation to more closely match GL JS’s implementation and the paper on which it is based.
Rewrote CameraOptions documentation. Only document units for generic types like double. The semantics of LatLng and Duration are already baked into the types; one just needs to look up the types’ definitions. Also, the […) is set notation, so the braces are supposed to be mismatched.
Fixes #3296.
|
| |
|
| |
|
|
|
|
|
|
| |
Corrected some fairly opaque code that was incorrectly ported from GL JS the first time around in #3171, causing the trajectory to extend far into the Earth’s orbit. Also transition pitch while flying, call transition frame/finish callback functions, and recognize the same “speed” and “curve” parameters that GL JS does.
Fixes #3296, fixes #3297.
|
|
|
|
| |
You can now change the orientation of north to be to the right, bottom, left in addition to the default of top
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #3084
|
|
|
|
|
| |
This allows MapData members to hold GL resources which must be released
on the MapContext thread -- necessary for the following commit.
|
| |
|
|
|
|
|
| |
Map debug options are now cycled up to all debug options enabled, then
back to none.
|
|
|
|
|
|
|
| |
It's a premultiplied image. This implies that we were misusing encodePNG
in most cases, as we were passing premultiplied pixels which were then
interpreted as unmultiplied. I changed encodePNG to accept premultipled
pixels, and unpremultiply in the implementations.
|
|
|
|
|
|
| |
* Consolidate Image and StillImage
* Typecheck unassociated vs premultiplied images
* Rewrite default platform image decoding implementation
|
|
|
|
|
|
| |
Added transition frame and finish functions to CameraOptions. Added Objective-C equivalents to the three main entry points to easeTo() in MGLMapView.
Fixes #1581.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
ConstrainMode gives flexibility to our engine to choose between
constraining both vertically and horizontally, or just vertically
(default behavior).
Constrain in both axis means we can no longer pan the map beyond the map
boundaries. This fixes an issue where e.g. annotations disappear upon
crossing the map boundaries.
|
|
|
|
|
| |
We could reuse all the operators defined in vec2<>, including operator
bool() that checks if the contained values are !NaN.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Pass-by-const-ref is not always possible because CameraOptions gets its
members modified along the way.
Also fixes a case in Map::jumpTo where Update::Zoom should be called if
zoom is affected.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
The location under your finger stays under your finger as you pan.
The location you double tap to zoom stays at the same point.
The location at the center of a pinch zoom stays at the center.
The location at the center of a rotation stays at the center.
|
| |
|
|
|
|
|
|
|
| |
Adding new mbgl::GLContextMode enum to mbgl::Map ctor, which gets stored
in MapData. In shared GL context environments, we cannot assume that the
GL state that has been left since the last draw is the same, so we reset
the GL configurations to their default values.
|
|
|
|
|
| |
Some platforms requires specific information that was previously not
available in public API, but stored internally in TransformState object.
|
| |
|
| |
|
|
|
|
| |
Fixes #2522
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
First, move style mutation code out of StyleParser and into AnnotationManager,
coalescing it with the mutation code for shape layers.
Second, allow AnnotationManager to keep track of stale tiles entirely
internally. There's no reason to pass sets of TileIDs around.
Third, correct the logic for invalidating the shape source. Since
AnnotationManager does not track shape invalidations on a tile-by-tile basis,
don't try to invalidate the shape source tile-by-tile.
Fixes #1675
Fixes #2322
Fixes #2095
|
|
|
|
| |
Fixes #1941
|
|
|
|
|
|
|
|
|
|
|
|
| |
Plumbed camera options all the way through to MGLMapView. Added a method that lets you specify a direction in addition to center point and zoom level.
Added Map::jumpTo() for parity with mapbox-gl-js. Replaced usage of Map::setLatLng() and Map::setLatLngZoom() with Map::jumpTo() or Map::easeTo() within MGLMapView. Replaced MGLMapView.pitch with MGLMapCamera for setting all supported degrees of freedom simultaneously. Simultaneously move and rotate with course.
Support customizable timing functions on iOS.
iosapp now persists an archived MGLMapCamera instead of separate viewpoint properties and also synchronizes user defaults on termination. This change implements persistence entirely in Objective-C, eliminating the use of the Objective-C++ implementation.
Fixes #1643, fixes #1834. Ref #1581.
|
| |
|
| |
|
|\ |
|
| | |
|
|/
|
|
|
| |
To be able to resize the framebuffer on the map thread
in HeadlessView.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Clients no longer need to provide data (eg. if gesturing or in a custom
animation) to Map::nudgeTransitions().
Upon MapContext::renderSync(), a new atomic bool 'needsRepaint' in MapData
allows thread-safe communication between Map and MapContext.
|
| |
|
|
|
|
|
|
|
| |
Added a setter/getter for default transition delay, in the same fashion
as the default transition duration.
Spin-off from #1888. Fixes #302.
|
|
|
|
|
|
| |
syncing""
This reverts commit 263f9fad308873077b9287dd8aeab089fc415b10.
|
|
|
|
|
|
| |
This reverts commit b8388168dd130c67c77254565cdb576df7905915.
It seems 'nudgeTransitions()' is no longer necessary as #1548 has fixed the update issues.
|