summaryrefslogtreecommitdiff
path: root/platform/default/mbgl/storage/offline_download.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Custom Geometry SourcesAsheem Mamoowala2017-11-221-0/+2
|
* Fast tileCount with help from @mapbox/sphericalmercator moduleAsheem Mamoowala2017-09-081-2/+2
|
* [core] Use fixed-size std::array for ImageSource coordinatesAsheem Mamoowala2017-06-011-4/+4
|
* [core] Offline support for Image SourcesAsheem Mamoowala2017-06-011-7/+22
|
* [core] Add ImageSource support to style parsersAsheem Mamoowala2017-06-011-0/+2
|
* [core] Immutable ImplsJohn Firebaugh2017-05-121-22/+35
|
* [tidy] modernize-use-autoBruno de Oliveira Abinader2017-05-121-6/+5
|
* [core, android] Factor JSON string conversionsJohn Firebaugh2017-05-081-9/+18
| | | | | | | | | | | This adds a `convertJSON` template, to be used like: Error error optional<Foo> foo = convertJSON<Foo>(string, error); Internally, it parses the string with RapidJSON and then calls `convert<Foo>(parsed, error)`. While here, rationalize GeoJSON converters and fix error handling for Tileset conversion in OfflineDownload.
* [core] Refactor Source::*Impls into RenderSources and TilePyramidJohn Firebaugh2017-05-021-3/+1
|
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-2/+2
|
* [core] Use UTF-16 instead of UTF-32 for label features to avoid extra ↵Chris Loer2016-11-171-1/+1
| | | | | | | conversions and reduce in-memory size. Continue to use uint32 as glyph ID to maintain Glyph PBF, even though we're only using 16 bits of that uint32. Use std::codecvt instead of boost::unicode_iterator for UTF8->UTF16 conversions.
* [core] Optimize OfflineDownload::ensureResource (#6707)Tore Halset2016-10-171-9/+16
| | | Add `OfflineDatabase::hasRegionResource`, for use when the actual contents are not needed by the caller, avoiding IO and decompression costs.
* [core] Extract some GlyphRange-related constantsJohn Firebaugh2016-09-261-3/+3
|
* [core] Provide rationale for blocking queue while errors resolveJohn Firebaugh2016-09-261-0/+17
|
* [core] Don't allow OfflineDownload to flood the request queueJohn Firebaugh2016-09-261-74/+59
|
* [core] Change GeoJSONSource::getURL() to return an optional<std::string>John Firebaugh2016-08-261-2/+2
| | | | GeoJSON sources may have inline GeoJSON rather than a URL; returning an optional type ensures that consumers handle this case.
* [core] support "scheme": "tms" in TileJSON filesKonstantin Käfer2016-08-161-1/+1
|
* GeoJSON point clustering (#5724)Vladimir Agafonkin2016-07-271-36/+50
| | | | | | | | | | | | | | | | * add supercluster dependency * prepare GeoJSONTile for Supercluster * prepare GeoJSONSource for accepting options * try removing mbgl::GeoJSON * fix setGeoJSON types * add GeoJSONSource getURL * add geojson to include path * add Supercluster index in GeoJSONSource * fix GeoJSONSource getZoomRange * bring back mbgl::GeoJSON header * fix tidy warnings hopefully * try test-suite with enabled cluster test * fix formatting in clustering-related files
* [core] Increment completedTileCount when appropriate (#5475)John Firebaugh2016-06-241-0/+2
|
* [core, node] Implement bindings for addSourceJohn Firebaugh2016-06-241-2/+2
|
* [core] Runtime source API: private implsJohn Firebaugh2016-06-161-14/+14
|
* [core] Use variant<std::string, GeoJSON> in GeoJSON sourceJohn Firebaugh2016-06-151-3/+7
|
* [core] Use variant<std::string, Tileset> in TileSourceJohn Firebaugh2016-06-151-8/+13
| | | | A tile source can either specify a URL to TileJSON, or inline TileJSON.
* [core] Add virtual Source::getTileSize()John Firebaugh2016-06-141-5/+5
|
* [core] Push Source::url down to subclassesJohn Firebaugh2016-06-141-8/+13
|
* [core] Push Source::tileset down to TileSourceJohn Firebaugh2016-06-141-6/+12
|
* [core] Use Range<uint8_t> instead of full Tileset where possibleJohn Firebaugh2016-06-141-1/+1
|
* [core] Rationalize naming for style-related codeJohn Firebaugh2016-06-021-15/+15
|
* [core] Runtime style layer APIJohn Firebaugh2016-06-021-1/+0
|
* [ios, osx] Add a property for bytes used by offline tilesBrent Whitman2016-04-271-1/+9
|
* Merge branch 'release-ios-3.2.0-android-4.0.0'John Firebaugh2016-03-301-6/+18
|\
| * [core] Stop download when tile limit is reachedJesse Bounds2016-03-171-6/+18
| | | | | | | | | | | | | | | | The tile limit guard (when used) stops a download from continuing when the tile limit is reached. This wraps the guard in a method and employs it in both places currently necessary to ensure the guard has a chance to function. Tests have been updated to ensure the fix works for a less trivial tile limit scenario.
* | [core] Unify FileRequest and WorkRequestJohn Firebaugh2016-03-241-6/+5
|/
* [core] Deactivate offline region upon completionMinh Nguyễn2016-03-111-0/+8
|
* [core] Deactivate OfflineDownload when the tile count limit is hitJohn Firebaugh2016-03-091-0/+1
| | | | This is a better behavior than sending hundreds or thousands of tileCountLimitExceeded notifications.
* [core] Fix offline status reporting regressionsJohn Firebaugh2016-03-081-28/+35
| | | | | | The core of the change is ensuring that ensureResource doesn't release Zalgo: it should be consistently async, rather than async in the case that the resource doesn't exist in the database, but sync if it does. This ensures that status is reported in a more consistent sequence, regardless of the database state.
* [core] Ensure OfflineRegionStatus::downloadState is accurately reportedJohn Firebaugh2016-03-071-0/+4
|
* [core] Fix offline status reporting with pre-existing tiles (#4147)John Firebaugh2016-03-041-9/+6
|
* [core] Limit total number of offline Mapbox tilesJohn Firebaugh2016-02-241-0/+8
|
* [core] status.requiredResourceCountIsIndeterminate ⇢ ↵John Firebaugh2016-02-241-5/+5
| | | | | | status.requiredResourceCountIsPrecise Change the name and reverse the sense. Naming things in the positive is better than naming them in the negative.
* Allow using tileSize: 512 as a switch to trade retina support for 512px ↵Young Hahn2016-02-111-2/+2
| | | | raster tiles
* [core] Retry errors encountered during offline downloadsJohn Firebaugh2016-02-101-2/+2
|
* [core] Interface and implementation for offlineJohn Firebaugh2016-02-101-0/+241