1. 26 Apr, 2022 5 commits
  2. 23 Apr, 2022 1 commit
  3. 14 Apr, 2022 1 commit
  4. 26 Jan, 2022 1 commit
  5. 13 Jan, 2022 1 commit
  6. 01 Nov, 2021 1 commit
    • James Westman's avatar
      license: Get license info from the map · ec655268
      James Westman authored and Marcus Lundblad's avatar Marcus Lundblad committed
      Removed the {append|prepend|remove}_map_source methods from
      ShumateLicense and replaced them with a `map` property. The license
      monitors changes to the map layers through a new `layers-changed`
      signal and updates the license text automatically.
      This also required adding `license` and `license-uri` properties to
      ShumateLayer. Currently only ShumateMapLayer implements them and they
      are taken from the map source.
  7. 14 Oct, 2021 2 commits
  8. 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.
  9. 08 Sep, 2021 1 commit
  10. 26 Aug, 2021 1 commit
    • James Westman's avatar
      Fix zoom formula · 01e3df83
      James Westman authored
      The formula for calculating zoom between integer levels was
      incorrect--it was linear, rather than exponential like the overall
      function. This change makes zooming smoother and more consistent.
      Also, added shumate_map_source_get_tile_size_at_zoom to reduce code
  11. 28 Jul, 2021 1 commit
    • James Westman's avatar
      Add support for rotation · c54ed6c6
      James Westman authored
      Add support for rotating the map using touchscreen/trackpad gestures.
      This involved changing the gesture tracking code to support zooming and
      rotating at the same time. Also, some of the viewport methods had to be
      changed since the calculations now depend on both coordinates.
  12. 06 Jul, 2021 1 commit
  13. 30 Jun, 2021 1 commit
  14. 18 Jun, 2021 1 commit
  15. 18 May, 2021 1 commit
  16. 17 May, 2021 1 commit
  17. 06 May, 2021 1 commit
  18. 06 Apr, 2021 1 commit
  19. 10 Mar, 2021 1 commit
  20. 09 Mar, 2021 4 commits
    • Georges Basile Stavracas Neto's avatar
      view: Fix scroll-to-zoom direction · ee1dac0d
      Georges Basile Stavracas Neto authored
      The check for the scroll deltas is reversed, correct that. It's worth
      noticing that we don't have to care about natural scroll, the values
      are reversed when it's enabled.
      Also make sure to not zoom out when dy is zero.
      Fixes: #4
    • Georges Basile Stavracas Neto's avatar
      view: Remove 'kinetic-mode' property · 84a5100b
      Georges Basile Stavracas Neto authored
      It doesn't seem to be useful enough to justify its existance, so just
      remove it. Adapt the Vala demo to not use it too.
    • Georges Basile Stavracas Neto's avatar
      view: Remove 'deceleration' property · be067301
      Georges Basile Stavracas Neto authored
      It currently is stub, and it doesn't seem to be much useful either.
      Remove the 'deceleration' property.
    • Georges Basile Stavracas Neto's avatar
      view: Add kinetic scrolling · 61f35d43
      Georges Basile Stavracas Neto authored
      Implement kinetic scrolling through a GtkGestureSwipe that is triggered
      after ending a drag. When triggered, it adds a tick callback to the view,
      and each tick calculates the new distance from the point where the drag
      end happened.
      The kinetic scrolling heuristic is copied and modified from GTK4.
      The deceleration rate is hardcoded for now, because the 'deceleration'
      property is stub, but that'll be fixed by the next commits.
      Fixes: #7
  21. 05 Mar, 2021 12 commits