Commit Graph

41 Commits

Author SHA1 Message Date
Konstantin Käfer
1ff317c1cd [core] remove SourceInfo dependency from *TileData 2016-01-13 13:04:59 -08:00
John Firebaugh
16de579d7c [core] Rationalize error handling for resource loading
* Standardize on std::exception_ptr as the error representation
  (fixes #2854).
* Don't format textual strings at the error source; pass on the
  constituent data via observer method parameters instead.
* Use the null object pattern to simplify observer notification code.
* Further refactoring for ResourceLoading tests.
2015-12-23 12:50:42 -08:00
Konstantin Käfer
478472e501 [core] add std::move to constructors 2015-12-03 15:38:36 +01:00
Konstantin Käfer
d5fb535058 [core] add namespace comment to closing brace 2015-12-03 15:38:36 +01:00
Konstantin Käfer
dc620f48de [core] Fix std::move() misuse that disables copy elision 2015-12-03 15:38:36 +01:00
Bruno de Oliveira Abinader
591e0dde2f [core] Added modified, expires information to TileData 2015-11-27 17:47:02 +02:00
John Firebaugh
7137239cbd [core] Use std::unique_ptr for FileSource request 2015-11-16 12:25:47 -08:00
John Firebaugh
1caf89c32b [core] Pass a value to response callback, not a reference 2015-11-16 12:25:47 -08:00
Thiago Marcos P. Santos
36581f3d30 [core] Do not pass uv_loop_t around
This should be abstracted by util::RunLoop
2015-11-16 12:25:47 -08:00
Konstantin Käfer
4d5c6333be [core] move retry logic to DefaultFileSource 2015-11-02 17:24:40 +01:00
John Firebaugh
e2dc956eb6 [core] Merge LiveTileData into VectorTileData
To encapsulate the differences, this introduces an abstract
GeometryTileMonitor class, with concrete VectorTileMonitor and
AnnotationTileMonitor implementations, and makes pbf parsing for
VectorTile data happen lazily in getLayer, since we want that to
happen on the worker thread, rather than when VectorTile is created.

Fixes #2792
2015-10-29 12:05:40 -07:00
John Firebaugh
2beb836a07 Parse VT tags lazily 2015-04-01 12:07:13 +02:00
Justin R. Miller
93abf881fb feature() -> getFeature() to clear up ambiguity / Linux compiler error 2015-03-17 19:25:32 -07:00
Justin R. Miller
e049ce6df1 refs #893 #992: point annotations API 2015-03-17 17:30:24 -07:00
John Firebaugh
d6c037d2bc Don't copy VT keys / values into each feature
Instead, maintain a key index ⇢ value index map and look up the
value in getValue().
2015-03-10 16:12:52 -07:00
John Firebaugh
c13227e35f Move parseValue(pbf) to vector_tile.cpp
This code is specific to the vector tile format.
2015-03-10 12:14:13 -07:00
John Firebaugh
05df041c15 Don't use const on value-type returns 2015-03-10 10:32:25 -07:00
John Firebaugh
5fa628bc00 Inline PBFGeometry 2015-03-10 10:31:24 -07:00
John Firebaugh
4d3dcea82c Revert FeatureType rename 2015-03-09 18:32:20 -07:00
John Firebaugh
b7f04ee7c2 Use single geometry format 2015-03-09 18:32:09 -07:00
John Firebaugh
50b5c15653 Rework GeometryTile* interface 2015-03-09 18:32:08 -07:00
Justin R. Miller
2d8bf823fc unique -> shared ptr 2015-03-09 11:57:34 -07:00
Justin R. Miller
7361f8566b move to shared pointers for queried layers passed to buckets 2015-03-09 11:57:34 -07:00
Justin R. Miller
a45ae199cf move from range-based for loop to iterator for to be clearer 2015-03-09 11:57:34 -07:00
Justin R. Miller
fbb2d17f43 fix iterator comparator 2015-03-09 11:57:34 -07:00
Justin R. Miller
a6b6a8d67e move to abstract interfaces to more be in line with original API 2015-03-09 11:57:34 -07:00
Justin R. Miller
e01fe2fb56 doesn't make sense to move shared pointers 2015-03-09 11:57:33 -07:00
Justin R. Miller
cf623e96c5 safely check points 2015-03-09 11:57:33 -07:00
Justin R. Miller
56bc3052ac refactor vars 2015-03-09 11:57:33 -07:00
Justin R. Miller
b523d0256b increment feature filter on creation 2015-03-09 11:57:33 -07:00
Justin R. Miller
c170f8887d get rid of unused member 2015-03-09 11:57:33 -07:00
Justin R. Miller
405137700b parse geometry collections from the pbfs; iterate geometries in buckets 2015-03-09 11:57:33 -07:00
Justin R. Miller
685aa01043 pass actual feature pbf when filtering layer features 2015-03-09 11:57:32 -07:00
Justin R. Miller
91dc0ba06f no need for while loop 2015-03-09 11:57:32 -07:00
Justin R. Miller
e379756f62 proper move 2015-03-09 11:57:32 -07:00
Justin R. Miller
4d9c1a0f33 iterate through fresh copy of layer data 2015-03-09 11:57:32 -07:00
Justin R. Miller
0a8a0aee90 move to abstract base classes & shared pointers 2015-03-09 11:57:32 -07:00
Justin R. Miller
41c3b82d3e refs #928: bookmarking working build of refactor 2015-03-09 11:57:31 -07:00
Justin R. Miller
831264d530 refs #928: 90% of way to genericizing VectorTile 2015-03-09 11:57:31 -07:00
Konstantin Käfer
86455585ee update mapbox::variant 2015-03-06 14:40:33 +01:00
Konstantin Käfer
abafb52f37 make most headers private 2014-12-04 20:02:50 +01:00