Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop SaveTool when tile source is used #257

Merged
merged 1 commit into from
Nov 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion geoviews/plotting/bokeh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import param
import numpy as np
from cartopy.crs import GOOGLE_MERCATOR
from bokeh.models import WMTSTileSource, BBoxTileSource, QUADKEYTileSource
from bokeh.models import WMTSTileSource, BBoxTileSource, QUADKEYTileSource, SaveTool

from holoviews import Store, Overlay, NdOverlay
from holoviews.core import util
Expand Down Expand Up @@ -78,6 +78,9 @@ def _init_glyph(self, plot, mapping, properties):
level = properties.pop('level', 'underlay')
renderer = plot.add_tile(tile_source, level=level)
renderer.alpha = properties.get('alpha', 1)

# Remove save tool
plot.tools = [t for t in plot.tools if not isinstance(t, SaveTool)]
return renderer, tile_source


Expand Down