2021-09-20 17:14:55 +02:00
|
|
|
Data in MapComplete can come from multiple sources.
|
|
|
|
|
2021-09-21 02:10:42 +02:00
|
|
|
Currently, they are:
|
|
|
|
|
|
|
|
- The Overpass-API
|
|
|
|
- The OSM-API
|
|
|
|
- One or more GeoJSON files. This can be a single file or a set of tiled geojson files
|
|
|
|
- LocalStorage, containing features from a previous visit
|
|
|
|
- Changes made by the user introducing new features
|
|
|
|
|
|
|
|
When the data enters from Overpass or from the OSM-API, they are first distributed per layer:
|
|
|
|
|
|
|
|
OVERPASS | ---PerLayerFeatureSource---> FeatureSourceForLayer[]
|
2021-11-07 16:34:51 +01:00
|
|
|
OSM |
|
2021-09-21 02:10:42 +02:00
|
|
|
|
|
|
|
The GeoJSon files (not tiled) are then added to this list
|
|
|
|
|
|
|
|
A single FeatureSourcePerLayer is then further handled by splitting it into a tile hierarchy.
|
|
|
|
|
|
|
|
In order to keep thins snappy, they are distributed over a tiled database per layer.
|
|
|
|
|
|
|
|
## Notes
|
|
|
|
|
|
|
|
`cached-featuresbookcases` is the old key used `cahced-features{themeid}` and should be cleaned up
|