mapcomplete/Logic/FeatureSource/TiledFeatureSource
2022-07-13 17:56:33 +02:00
..
DynamicGeoJsonTileSource.ts Add more checks in the import helper after user testing 2022-03-24 03:11:29 +01:00
DynamicTileSource.ts Add more checks in the import helper after user testing 2022-03-24 03:11:29 +01:00
FullNodeDatabaseSource.ts Full code cleanup 2022-01-26 21:40:38 +01:00
OsmFeatureSource.ts Fix import flow, add typing 2022-07-08 03:14:55 +02:00
README.md Full code cleanup 2021-11-07 16:34:51 +01:00
TiledFeatureSource.ts Huge refactoring: split readonly and writable stores 2022-06-05 02:24:14 +02:00
TileHierarchy.ts Add OsmFeature type 2022-07-13 17:56:33 +02:00
TileHierarchyMerger.ts Fix duplicate buildings for grb layer; add default flag for filters, performance improvement 2022-02-11 03:57:39 +01:00

Data in MapComplete can come from multiple sources.

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[] OSM |

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