1. 29 Jul, 2022 1 commit
  2. 18 Nov, 2021 1 commit
    • James Westman's avatar
      Split ShumateNetworkTileSource · 8c490eb2
      James Westman authored
      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.
      8c490eb2
  3. 06 Oct, 2021 1 commit
    • Niels De Graef's avatar
      docs: Update gi-docgen annotations · 7a0a03f2
      Niels De Graef authored
      The whole `SECTION` block is a gtk-doc specific annotation. Just
      immediately document the class/struct/interface with the usual docs
      syntax and gi-docgen will know what to do with it. There's also no
      worrying about exposed structs, since there are none in libshumate, and
      even if there were, you would still have to document them in the GIR.
      
      Finally, use proper linking as specified by the gi-docgen tutorial.
      7a0a03f2
  4. 20 May, 2021 1 commit
  5. 07 Apr, 2021 1 commit
    • James Westman's avatar
      file-cache: Return tile modification time · f2eaeee9
      James Westman authored and Corentin Noël's avatar Corentin Noël committed
      Change get_tile_finish() to provide the modification time of a tile.
      This allows the network tile source to use it in requests for caching,
      and makes expiration checking more robust since it doesn't rely on the
      presence of an ETag.
      f2eaeee9
  6. 02 Apr, 2021 1 commit
  7. 24 Mar, 2021 1 commit
    • James Westman's avatar
      Remove ShumateTileCache · b3bfa3bf
      James Westman authored
      Now that ShumateFileCache and ShumateMemoryCache have been moved, it no
      longer has any subclasses and can be removed.
      b3bfa3bf
  8. 23 Mar, 2021 2 commits
    • James Westman's avatar
      file-cache: Remove as a map source · 70248d81
      James Westman authored and Marcus Lundblad's avatar Marcus Lundblad committed
      ShumateFileCache now extends GObject rather than ShumateTileCache. It is
      only used internally by ShumateNetworkSource, though it remains
      public for use by custom tile sources. This greatly simplifies the file
      cache code.
      70248d81
    • James Westman's avatar
      file-cache: Add methods to store/retrieve raw data · 33167037
      James Westman authored and Marcus Lundblad's avatar Marcus Lundblad committed
      Add methods to ShumateFileCache to store and retrieve raw tile data,
      rather than going through the ShumateMapSource interface. This will
      allow ShumateNetworkTileSource to have its own file cache without a map
      source chain.
      
      The methods are asynchronous, but there are still some blocking I/O calls left.
      
      Also added a ShumateFileCache:cache-key property. This is used instead
      of its map source ID.
      33167037
  9. 22 Sep, 2020 1 commit
  10. 15 May, 2020 1 commit
  11. 02 May, 2020 1 commit
  12. 23 Jan, 2019 1 commit
    • Marcus Lundblad's avatar
      Remove Since tags · 36c2db60
      Marcus Lundblad authored
      We're starting the version numbering afresh,
      so all API is present from the start.
      36c2db60
  13. 21 Jan, 2019 1 commit
  14. 18 Jan, 2019 1 commit
    • Marcus Lundblad's avatar
      Rename API · 4862733f
      Marcus Lundblad authored
      Use the Shumate name for identifiers and symbols.
      Also remove left-over docs for the GTK+ widgetery.
      4862733f