holoviz / geoviews

Simple, concise geographical visualization in Python
http://geoviews.org
BSD 3-Clause "New" or "Revised" License
577 stars 75 forks source link

Set central_longitude when using map tiles #427

Open Skealz opened 4 years ago

Skealz commented 4 years ago

I would like to be able to center on longitude a map from geoviews.tile_sources.

I currently can do :

import geoviews.feature as gf

plot = gf.coastline.opts(projection=ccrs.PlateCarree(central_longitude=lon))

and would like to do :

import geoviews.tile_sources as gts

plot = gts.EsriTerrain.opts(central_longitude=lon)

I suppose that with map tiles it will not go through the projection parameter because tiles can't be reprojected.

philippjfr commented 4 years ago

Thanks, definitely seems like a good idea.