Skip to content

Commit

Permalink
Expose bokeh tiles kwds
Browse files Browse the repository at this point in the history
Not entirely sure if more work is needed to expose the variables from:
https://docs.bokeh.org/en/latest/docs/reference/models/tiles.html
#509
  • Loading branch information
ahuang11 committed Aug 3, 2021
1 parent 37d4c43 commit d222992
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions geoviews/element/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,21 @@ class WMTS(_GeoFeature):

layer = param.String(doc="The layer on the tile service")

extra_url_vars = param.Dict(doc="""
A dictionary that maps url variable template keys to values.
These variables are useful for parts of tile urls which do not
change from tile to tile (e.g. server host name, or layer name).""")

max_zoom = param.Integer("A maximum zoom level for the tile layer. This is the most zoomed-in level.")

min_zoom = param.Integer("A minimum zoom level for the tile layer. This is the most zoomed-out level.")

tile_size = param.Integer("Tile size in pixels (e.g. 256)")

use_latlon = param.Boolean("Flag which indicates option to output {XMIN}, {YMIN}, {XMAX}, {YMAX} in meters or latitude and longitude.")

wrap_around = param.Boolean("Enables continuous horizontal panning by wrapping the x-axis based on bounds of map.")

def __init__(self, data, kdims=None, vdims=None, **params):
if ((MercatorTileSource and isinstance(data, MercatorTileSource)) or
(GoogleTiles and isinstance(data, GoogleTiles))):
Expand Down

0 comments on commit d222992

Please sign in to comment.