Grid State
Constructors
Types
Link copied to clipboard
data class CachedTile(var tileCollections: Array<FeatureCollection>, var intersectionMap: HashMap<LngLatAlt, Intersection> = hashMapOf(), var lastUsed: Long)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
clearTileConnectionsFromGrid removes all joining ways from the grid.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The tile grid service is called each time the location changes. It checks if the location has moved away from the center of the current tile grid and if it has calculates a new grid.
Link copied to clipboard
fun processGridState(featureCollections: Array<FeatureCollection>, enabledCategories: Set<String>, newGridIntersections: List<HashMap<LngLatAlt, Intersection>>, localTrees: Array<FeatureTree>, intersectionAccumulator: HashMap<LngLatAlt, Intersection>, grid: TileGrid)
processGridState is now called from within the single thread that can access the tile grid. This makes it somewhat performance critical. However, by doing this it allows us to disconnect and reconnect the tile grid