Skip to content

Commit

Permalink
Drop SaveTool when tile source is used (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Nov 29, 2018
1 parent 9fd8055 commit cf8214a
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit cf8214a

Please sign in to comment.