Verified Commit 8c490eb2 authored by James Westman's avatar James Westman
Browse files

Split ShumateNetworkTileSource

Split the network source into separate classes for fetching data,
rendering raster tiles, and rendering vector tiles. This makes the code
much more modular and organized, especially since vector tiles are about
to get even more complicated.

ShumateDataSource is a new abstract class that retrieves tile data. It
has a built-in implementation, ShumateTileDownloader, which takes over
the network part of ShumateNetworkTileSource.

ShumateRasterRenderer is a ShumateMapSource that provides tiles by
reading image files from a ShumateDataSource. Similarly, ShumateVectorRenderer
is a ShumateMapSource that provides tiles by rendering vector tiles.

This commit also modifies the network source to use the tile URL as a
file cache key, rather than the map source ID. This is because, with
vector tiles, two different map sources may use the same set of tiles.
parent f1ac2849
Pipeline #334400 passed with stages
in 2 minutes and 39 seconds