Skip to content

Commit

Permalink
Accept lowercase xmin/ymin/xmax/ymax
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 authored and jbednar committed Nov 18, 2021
1 parent ad6e3f0 commit 59ccc79
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions geoviews/plotting/bokeh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ def get_data(self, element, ranges, style):
if not isinstance(element.data, util.basestring):
SkipRendering("WMTS element data must be a URL string, "
"bokeh cannot render %r" % element.data)
if '{Q}' in element.data:
if '{Q}' in element.data.upper():
tile_source = QUADKEYTileSource
elif all(kw in element.data for kw in ('{XMIN}', '{XMAX}', '{YMIN}', '{YMAX}')):
elif all(kw in element.data.upper() for kw in ('{XMIN}', '{XMAX}', '{YMIN}', '{YMAX}')):
tile_source = BBoxTileSource
elif all(kw in element.data for kw in ('{X}', '{Y}', '{Z}')):
elif all(kw in element.data.upper() for kw in ('{X}', '{Y}', '{Z}')):
tile_source = WMTSTileSource
else:
raise ValueError('Tile source URL format not recognized. '
Expand Down Expand Up @@ -159,7 +159,7 @@ class FilledContourPlot(GeoPolygonPlot):

levels = param.ClassSelector(default=10, class_=(list, int), doc="""
A list of scalar values used to specify the contour levels.""")


class GeoPathPlot(GeoPlot, PathPlot):

Expand Down Expand Up @@ -235,7 +235,7 @@ def get_data(self, element, ranges, style):
el_type = Polygons
polys = el_type(geoms, crs=element.crs, **util.get_param_values(element))
return super(FeaturePlot, self).get_data(polys, ranges, style)



class GeoTextPlot(GeoPlot, TextPlot):
Expand Down

0 comments on commit 59ccc79

Please sign in to comment.