From 77b568fc9d720cc253388621674893e1917d0a69 Mon Sep 17 00:00:00 2001 From: Andrew <15331990+ahuang11@users.noreply.github.com> Date: Thu, 25 May 2023 01:13:19 -0700 Subject: [PATCH] Make states fill_color="none" (transparent) (#643) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Simon Høxbro Hansen --- CHANGELOG.md | 3 +++ doc/releases.rst | 7 ++++++- geoviews/plotting/bokeh/__init__.py | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 013eea70..d1959732 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,10 +8,13 @@ This release adds Bokeh 3 support to Geoviews, along with bug fixes and enhancem This release also deprecates the `Wikipedia` tile source. If you are using this tile source, please switch to the `OSM` tile source instead. The `Wikipedia` tile source will be removed in version 1.11.0. `geoviews.util.load_tiff` has also been deprecated `rioxarray.open_rasterio` to load GeoTIFFs into a `xarray.DataArray`. +Note, this release has a minor breaking change where `gv.feature.states` defaults to `fill_color=None` so the fill color is transparent. + Enhancements: - Add Bokeh 3 support to GeoViews ([#625](https://github.com/holoviz/geoviews/pull/625)) - Add `PandasAPI` to `GeoPandasInterface` ([#620](https://github.com/holoviz/geoviews/pull/620)) +- Updated the default for `gv.feature.states` to `fill_color=None` ([#643](https://github.com/holoviz/geoviews/pull/643)) Bug fixes: diff --git a/doc/releases.rst b/doc/releases.rst index e64f9e1e..c7cf9072 100644 --- a/doc/releases.rst +++ b/doc/releases.rst @@ -7,7 +7,7 @@ Version 1.10.0 Date: May 24, 2023 This release adds Bokeh 3 support to Geoviews, along with bug fixes and -enhancements. Many thanks to @maximlt, @philippjfr, and @Hoxbro. +enhancements. Many thanks to @maximlt, @philippjfr, @Hoxbro, and @ahuang11. This release also deprecates the ``Wikipedia`` tile source. If you are using this tile source, please switch to the ``OSM`` tile source @@ -16,12 +16,17 @@ instead. The ``Wikipedia`` tile source will be removed in version ``rioxarray.open_rasterio`` to load GeoTIFFs into a ``xarray.DataArray``. +Note, this release has a minor breaking change where `gv.feature.states` +defaults to `fill_color=None` so the fill color is transparent. + Enhancements: - Add Bokeh 3 support to GeoViews (`#625 `__) - Add ``PandasAPI`` to ``GeoPandasInterface`` (`#620 `__) +- Updated the default for ``gv.feature.states`` to ``fill_color=None`` + (`#643 `__) Bug fixes: diff --git a/geoviews/plotting/bokeh/__init__.py b/geoviews/plotting/bokeh/__init__.py index c6a7c799..07aa4b35 100644 --- a/geoviews/plotting/bokeh/__init__.py +++ b/geoviews/plotting/bokeh/__init__.py @@ -307,4 +307,5 @@ def _process(self, element, key=None): options.Feature.Lakes = Options('style', fill_color='#97b6e1', line_color='#97b6e1') options.Feature.Rivers = Options('style', line_color='#97b6e1') options.Feature.Grid = Options('style', line_width=0.5, alpha=0.5, line_color='gray') +options.Feature.States = Options('style', fill_color=None) options.Shape = Options('style', line_color='black', fill_color='#30A2DA')