Skip to content
Permalink
Browse files

Use box_zoom tool with match_aspect=True for bokeh geoplots

  • Loading branch information
philippjfr committed Apr 18, 2017
1 parent e6acf18 commit c6c41a979dca928c83d74c3773df458840832907
Showing with 6 additions and 1 deletion.
  1. +6 −1 geoviews/plotting/bokeh/__init__.py
@@ -6,12 +6,13 @@
import shapely.geometry
from cartopy.crs import GOOGLE_MERCATOR
from bokeh.models import WMTSTileSource
from bokeh.models.tools import BoxZoomTool

from holoviews import Store
from holoviews.core import util
from holoviews.core.options import SkipRendering, Options
from holoviews.plotting.bokeh.annotation import TextPlot
from holoviews.plotting.bokeh.element import ElementPlot
from holoviews.plotting.bokeh.element import ElementPlot, OverlayPlot
from holoviews.plotting.bokeh.chart import PointPlot
from holoviews.plotting.bokeh.path import PolygonPlot, PathPlot
from holoviews.plotting.bokeh.raster import RasterPlot
@@ -32,6 +33,10 @@ class GeoPlot(ElementPlot):
Plotting baseclass for geographic plots with a cartopy projection.
"""

default_tools = param.List(default=['save', 'pan', 'wheel_zoom',
BoxZoomTool(match_aspect=True), 'reset'],
doc="A list of plugin tools to use on the plot.")

show_grid = param.Boolean(default=False)

def __init__(self, element, **params):

0 comments on commit c6c41a9

Please sign in to comment.
You can’t perform that action at this time.