Skip to content

Commit

Permalink
Added WEB_MERCATOR_LIMITS tuple to element.tiles for convenience
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jul 12, 2021
1 parent 3e6ecdf commit 9e193f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion holoviews/element/tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from ..util.transform import lon_lat_to_easting_northing, easting_northing_to_lon_lat


WEB_MERCATOR_LIMITS=(-20037508.342789244, 20037508.342789244)

class Tiles(Element2D):
"""
The Tiles element represents tile sources, specified as URL
Expand Down Expand Up @@ -190,4 +192,4 @@ def wikimedia_replacement():

tile_sources = {k: v for k, v in locals().items() if isinstance(v, FunctionType) and k not in
['ESRI', 'lon_lat_to_easting_northing', 'easting_northing_to_lon_lat',
'deprecation_warning', 'wikimedia_replacement']}
'deprecation_warning', 'wikimedia_replacement', 'WEB_MERCATOR_LIMITS']}

0 comments on commit 9e193f1

Please sign in to comment.