| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Fix no viable conversion on OSX.
|
|
|
|
|
|
|
|
|
|
| |
If the server keeps sending replies considered from the client in the
past (there is no way to tell if the server or client clock is wrong),
the client will try to interpolate a valid expiration time based
on the delta of the expiration intervals sent by the server.
If the intervals are always the same, exponential backoff kicks in
until we get a different expiration time from what we already have.
|
| |
|
|
|
|
|
|
| |
status.requiredResourceCountIsPrecise
Change the name and reverse the sense. Naming things in the positive is better than naming them in the negative.
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| |
| |
| |
| | |
port https://github.com/mapbox/mapbox-gl-js/pull/2043 from -js
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Instead, the eviction policy accounts for the actual size needed for an incoming put.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When inserting an cached resource, or removing a region, remove least-recently used resources and tiles, not used by offline regions, until the used database size, as calculated by multiplying the number of in-use pages by the page size, is less than the maximum cache size minus 5 times the page size.
In addition, OfflineDatabase may be configured to ignore cache puts of individual resources larger than a certain size.
This policy is similar but not identical to the former SQLiteCache policy:
* It accounts for offline, by exempting resources required by offline regions from eviction.
* It must delete from two tables (resources and tiles), rather than one. Currently the strategy is naive: evict 50 rows at a time from each table.
* It makes maximumCacheSize and maximumCacheEntrySize completely independent. The SQLiteCache implementation evicted when `usedSize > maximumCacheSize - 2 * maximumCacheEntrySize`. This evicts when `usedSize > maximumCacheSize - 5 * pageSize`.
* It uses a non-unlimited default value for maximumCacheSize: 50 MB. We should have always had a limit in place; "a cache without an eviction policy is a resource leak".
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
For AssetFileSource and the node FileSource this was already the case; this makes the other implementations consistent.
|
| | |
|
| |
| |
| |
| | |
This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more.
|
| | |
|
| |
| |
| |
| | |
Also removes duplicate code from gl_helper.hpp by reusing the GL values that we already have anyway.
|
| | |
|
|/ |
|
|
|
|
| |
There is no such thing as a cancelled response, only cancelled requests. A request that is cancelled does not have its callback called with a Response.
|
| |
|
| |
|
|
|
|
| |
Implicit bool conversions are bad; they'll be used e.g. for a == b and a != b if those operators are not defined. This was happening at https://github.com/mapbox/mapbox-gl-native/blob/032c8fba3c8e3c122dd399b5c9341d92ad9d286f/src/mbgl/map/transform.cpp#L132-L132, for example.
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Convert all geometries to the maximum extent supported by our buffers
and then use that constant extent everywhere else.
|
|
|
|
| |
Renamed -showAnnotations:withEdgeInsets:animated: to -showAnnotations:edgePadding:animated: for consistency with other methods. Reworded documentation comments to avoid hard-coding too many specifics that are prone to getting outdated.
|
|
|
|
| |
Keeps sensible defaults already in place, but allows callers to override.
|
|
|
|
| |
It makes forward declarations inconsistent and liable to change, for no real gain.
|
| |
|
| |
|
| |
|
|
|
|
| |
Restored (but deprecated) a method removed in #3100 to avoid a major version bump.
|
|
|
|
| |
Ported MGLMapDebugMaskOptions from the OS X SDK. Deprecated debugActive and -cycleDebugOptions.
|
|
|
|
|
|
|
|
| |
adds:
setMaximumZoomLevel
setMinimumZoomLevel
and makes `maximumZoomLevel` and `minimumZoomLevel` not readonly
|
|
|
|
|
|
|
|
| |
adds:
minimumZoomLevel
setMinimumZoomLevel
maximumZoomLevel
setMaximumZoomLevel
|
|
|
|
| |
also change the default maxZoom to 20 to match -js.
|
| |
|
|
|
|
| |
The tilt gesture on both iOS and OS X now respects the content insets. On iOS, in user tracking mode, it additionally respects the user dot’s position if it’s aligned to the top or bottom of the view.
|
|
|
|
| |
When a targetCoordinate is specified in course tracking mode, the map automatically resizes the viewport to show both the user puck and the target, one at the top and the other at the bottom. The user puck now rotates its arrow in the course direction, no longer assuming that the viewport is facing the same way as the course.
|