Commit Graph

41 Commits

Author SHA1 Message Date
Minh Nguyễn
7ff036cd01 [core] Removed map attribution API
Since client code can readily access the individual sources, Map doesn’t need to expose a dedicated API for iterating over them.
2016-09-26 15:42:57 -07:00
John Firebaugh
9d6b50828e [core] Runtime source API: part 2 2016-06-16 13:27:15 -07:00
John Firebaugh
900568cfb0 [core] Runtime source API: private impls 2016-06-16 13:27:15 -07:00
John Firebaugh
7f60d5e403 [core] Miscellaneous Source cleanups 2016-06-14 11:25:45 -07:00
John Firebaugh
98357ab68e [core] Add Source::startRender for parallelism with finishRender 2016-06-14 11:25:45 -07:00
John Firebaugh
5bbcca8326 [core] Add virtual Source::getTileSize() 2016-06-14 11:25:45 -07:00
John Firebaugh
9d3c4fbbb0 [core] Push Source::url down to subclasses 2016-06-14 11:25:45 -07:00
John Firebaugh
9dfcb95e4f [core] Push Source::tileset down to TileSource 2016-06-14 11:25:45 -07:00
John Firebaugh
755cc80edf [core] Add virtual Source::getZoomRange() 2016-06-14 11:25:45 -07:00
John Firebaugh
6eab895bc0 [core] Use Range<uint8_t> instead of full Tileset where possible 2016-06-14 11:25:45 -07:00
John Firebaugh
14ab6661e0 [core] Eliminate Source::isLoading
Source::load is already a no-op if the request is in progress, so it isn't necessary.
2016-06-14 11:25:45 -07:00
John Firebaugh
cf7420a3c9 [core] Push Source::geojsonvt down to GeoJSONSource 2016-06-14 11:25:45 -07:00
John Firebaugh
2a991c6846 [core] Virtualize Source::load 2016-06-14 11:25:45 -07:00
John Firebaugh
eecf9e7d23 [core] Virtualize Source::createTile 2016-06-14 11:25:45 -07:00
John Firebaugh
b222689de8 [core] Pass geojsonvt only to GeoJSONSource 2016-06-14 11:25:45 -07:00
John Firebaugh
282e626ac1 [core] Make enum ↔ string conversion more generic-friendly
Rewrite enum.hpp in such a way that parseConstant can be defined generically for all enumerated types.

While there, properly validated enumerated property values.
2016-06-13 17:22:05 -07:00
Bruno de Oliveira Abinader
4161d197fd [tidy] Check modernize-pass-by-value
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html
2016-06-13 23:32:05 +03:00
John Firebaugh
5c7dfd948f [core] *Tile ↔ *TileData
Tile is now the main base class; RasterTile, VectorTile, etc are its subclasses. GeometryTileData and its subclasses form the piece that's passed to the worker.
2016-06-13 10:59:33 -07:00
John Firebaugh
3ab7c1cca3 [core] Tile ⇢ RenderTile 2016-06-13 10:57:46 -07:00
John Firebaugh
13d0a8b815 [core] Merge vector_tile_data.{hpp,cpp} into vector_tile.{hpp,cpp} 2016-06-13 10:57:46 -07:00
John Firebaugh
078392eda9 [core] Merge annotation_tile_data.{hpp,cpp} into annotation_tile.{hpp,cpp} 2016-06-13 10:57:46 -07:00
John Firebaugh
0035eb0122 [core] Merge geojson_tile_data.{hpp,cpp} into geojson_tile.{hpp,cpp} 2016-06-13 10:57:46 -07:00
John Firebaugh
dbf16440a6 [core] Eliminate Source dependency on TileSource 2016-06-10 12:42:14 +02:00
John Firebaugh
c3a8534a43 [core] Push conditional initialization into subclasses 2016-06-10 12:42:14 +02:00
John Firebaugh
908f3f0832 [core] Introduce GeometryTileData subclasses 2016-06-10 12:42:14 +02:00
John Firebaugh
a7cc291ce1 [core] Move setObserver out of Source::createTile 2016-06-10 12:42:14 +02:00
John Firebaugh
5f05294118 [core] Move cache lookup out of Source::createTile 2016-06-10 12:42:14 +02:00
John Firebaugh
7235ba0bfb [core] Repeat some code so that all branches are parallel 2016-06-10 12:42:14 +02:00
John Firebaugh
ebd19db42a [core] Remove unused includes 2016-06-10 12:42:14 +02:00
Konstantin Käfer
4e5d065000 [core] load parents of missing tiles as optional 2016-06-10 12:42:14 +02:00
Konstantin Käfer
8a8f828e41 [core] rename onPlacementRedone -> onNeedsRepaint 2016-06-10 12:42:14 +02:00
Konstantin Käfer
2c7f7fb566 [core] createTile callback can load optional and required tiles 2016-06-10 12:42:14 +02:00
Konstantin Käfer
f180179d1b [core] allow changing the necessity of a TileSource 2016-06-10 12:42:14 +02:00
Konstantin Käfer
971807d3b0 [core] move parsePending() call to TileData 2016-06-10 12:42:14 +02:00
Konstantin Käfer
436d8eb5e0 [core] introduce TileDataObserver
avoids passing around bound callback functions
2016-06-10 12:42:14 +02:00
Konstantin Käfer
2b6d0751cf [core] restructure TileSource construction and callbacks 2016-06-10 12:42:14 +02:00
Konstantin Käfer
6b729ccb46 [core] store Resource instead of dependents to build URL 2016-06-10 12:42:14 +02:00
Konstantin Käfer
46b0ebcd3c [core] rename VectorTileData => GeometryTileData 2016-06-10 12:42:14 +02:00
Konstantin Käfer
99b1df4e46 [core] introduce a RasterTileMonitor 2016-06-10 12:42:14 +02:00
Konstantin Käfer
e8d8f52d2e [core] *TileMonitor => *TileSource 2016-06-10 12:42:14 +02:00
John Firebaugh
c902f9098b [core] Rationalize naming for style-related code 2016-06-02 14:51:39 -07:00