Skip to content

EOmaps v3.3

Compare
Choose a tag to compare
@raphaelquast raphaelquast released this 16 Mar 10:19
· 2694 commits to master since this release
6916424

A release with some nice new features and a lot of usability updates and fixes.
❗ note that there is a breaking change compared to <v3.2 (only affecting the ambiguous "layer" kwarg of dynamic artists (see 🌦️ changes below for details) )

🌳 NEW

(⭐: new feature, 🍃: new functionalities for existing features)

  • ⭐ There's a new pre-defined WebMap service: m.add_wms.GEBCO that provides nice underwater topography (https://www.gebco.net/)
  • ⭐ Theres a new function m.redraw() that can be used to force a re-draw of the entire figure
  • ⭐ shortcuts for mg.redraw and mg.util have been added to MapsGrid
  • 🍃 m.add_wms. ... <layer>.set_extent_to_bbox() now supports a new kwarg shrink which can be used to set the extent to a "shrinked" bbox (useful to avoid request-errors for tiles outside the bbox)
  • 🍃 m.add_colorbar can now be used to add individual colorbars for different plot-layers
    (the colorbars will always reflect the currently displayed layer)
  • 🍃the peek_layer callback can now be used to either view one (or more) layers or to overlay one (or more) layers on top of the current background layer.
  • 🍃 some major improvements have been implemented for fetching WebTiles from xyz-TileServer links.
    • m.add_wms.get_service now supports using custom wms, wmts, restAPI or xyz services

🌦️ changes

  • the ambiguous (and misleading) layer kwarg has finally been removed from dynamic artists.
    (note this "layer" was NOT referring to the actual plot-layer but to the stacking of dynamic artists!)
    • layer now always refers to the background layer name and not to the stack-order of dynamic artists!
    • ❗ the plot-order of multiple artists on the same layer is now determined by matplotlib's zorder property.
      - ❕ old: m.cb.click.attach.mark(layer=5) ➡️ new: m.cb.click.attach.mark(zorder=5)
      - ❕ old: m.cb.click.attach.annotate(layer=5) ➡️ new: m.cb.click.attach.annotate(zorder=5)
      - ❕ old: m.BM.add_artist(art, layer=5) ➡️ new: m.BM.add_artist(art) + art.set_zorder(5)
    • all examples have been updated accordingly

🔨 fixes

  • fix _onrelease() missing 1 required positional argument
  • fix issues with nbagg and ipympl backends (e.g. jupyter notebooks)
  • fix plt.show should only be called if we're in an interactive backend!
  • fix some issues with the scalebar and colorbar
  • re-work of draggable_axes
  • fix maxzoom for stamen_watercolor layer