summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/geojson_source.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix performance-unnecessary-value-param errorsThiago Marcos P. Santos2020-03-231-1/+1
| | | | As reported by clang-tidy-8.
* [core] Add runtime API for setting tile prefetch delta for SourceAlexander Shalamov2020-02-111-0/+4
| | | | | | | New setPrefetchZoomDelta(optional<uint8_t> delta) method allow overriding default tile prefetch setting that is defined by the Map instance. The method can be moved to generic style specification if found to be useful for gl-js engine.
* GeoJSONSource is re-using the existing schedulerMikhail Pozdnyakov2020-01-241-2/+14
| | | | Thus avoiding spawing new threads on `setGeoJSONData()` calls.
* [core] Modularize FileSource codebase (#15768)Alexander Shalamov2020-01-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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
* [core] Fix -Wshadow when using GCC 4.9Thiago Marcos P. Santos2019-12-121-3/+3
|
* [core] Retain thread pool in GeoJSONSourceMikhail Pozdnyakov2019-11-291-2/+2
| | | | Otherwise, the construction of the `Immutable<Source::Impl>` in background thread might never yeld.
* [core][android][darwin] Fix GeoJSONOptions handlingMikhail Pozdnyakov2019-11-291-3/+9
| | | | | | - share the `GeoJSONOptions` instances using `Immutable<GeoJSONOptions>` - avoid extra copying - fix wrapping of the `GeoJSONOptions` instances in supercluster map/reduce lambdas. Previously, local variables were wrapped by reference.
* [core] Parse GeoJSONSource description in backgroundMikhail Pozdnyakov2019-11-051-12/+24
| | | | Unblocks the UI thread on heavy GeoJSON tiles parsing operation
* [android] Convert GeoJSON features to tiles in backgroundMikhail Pozdnyakov2019-10-311-0/+4
| | | | | | | | | Composing tiles from the GeoJSON features is an expensive operation that might block UI thread on updating the `GeoJsonSource` with the new data. This change moves tile composing to the background thread and thus unblocks the UI thread.
* [core] Introduce and apply GeoJSONData::create() APIMikhail Pozdnyakov2019-10-311-9/+11
|
* [core] Fix performance-move-const-argThiago Marcos P. Santos2019-09-251-3/+2
|
* [core] Use LayerInfo::tileKind in sourcesMikhail Pozdnyakov2019-09-181-3/+2
|
* [core] Check layer compatibility with sourceMikhail Pozdnyakov2019-09-181-4/+11
|
* Indroduce clusterProperty option for aggregation (#15287)zmiao2019-08-161-1/+1
| | | | | | | | | | * indroduce clusterProperty option for aggregation * remove unnecessary codes * update geojson_option conversion * fix reviewing findings
* [core] Trigger repaint on source changesAsheem Mamoowala2017-06-191-0/+1
|
* [core] Immutable ImplsJohn Firebaugh2017-05-121-7/+62
|
* [core] Refactor Source::*Impls into RenderSources and TilePyramidJohn Firebaugh2017-05-021-1/+1
|
* [core] Added URL accessor for tile sourcesMinh Nguyễn2016-12-201-1/+1
|
* [core] Change GeoJSONSource::getURL() to return an optional<std::string>John Firebaugh2016-08-261-1/+1
| | | | GeoJSON sources may have inline GeoJSON rather than a URL; returning an optional type ensures that consumers handle this case.
* GeoJSON point clustering (#5724)Vladimir Agafonkin2016-07-271-5/+10
| | | | | | | | | | | | | | | | * 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, node] Implement bindings for addSourceJohn Firebaugh2016-06-241-0/+13
|
* [core] Runtime source API: part 2John Firebaugh2016-06-161-0/+8
|
* [core] Runtime source API: private implsJohn Firebaugh2016-06-161-113/+0
|
* [core] Use variant<std::string, GeoJSON> in GeoJSON sourceJohn Firebaugh2016-06-151-26/+17
|
* [tidy/linux] modernize-pass-by-valueBruno de Oliveira Abinader2016-06-141-1/+1
|
* [core] Add virtual Source::getTileSize()John Firebaugh2016-06-141-1/+1
|
* [core] Push Source::url down to subclassesJohn Firebaugh2016-06-141-1/+2
|
* [core] Push Source::tileset down to TileSourceJohn Firebaugh2016-06-141-8/+2
|
* [core] Add virtual Source::getZoomRange()John Firebaugh2016-06-141-1/+4
|
* [core] Use Range<uint8_t> instead of full Tileset where possibleJohn Firebaugh2016-06-141-2/+2
|
* [core] Move GeoJSON-specific parsing into geojson_source.cppJohn Firebaugh2016-06-141-2/+50
|
* [core] Push Source::req down into subclassesJohn Firebaugh2016-06-141-0/+2
|
* [core] Push Source::geojsonvt down to GeoJSONSourceJohn Firebaugh2016-06-141-2/+2
|
* [core] Virtualize Source::loadJohn Firebaugh2016-06-141-0/+50
|
* [core] Virtualize Source::createTileJohn Firebaugh2016-06-141-0/+6
|
* [core] Pass geojsonvt only to GeoJSONSourceJohn Firebaugh2016-06-141-1/+4
|
* [core] Introduce source subclassesJohn Firebaugh2016-06-141-0/+15