xoa.core.plot.get_layer_projection#
- xoa.core.plot.get_layer_projection(layer=None)[source]#
Get the projection of a map that suits its background layer
The tiles of a WMTS layer are warped with a nearest neighbor interpolation when the map has another projection, which blurs their texts and lines. They are in the web Mercator projection for most services, like the default one.
- Parameters:
layer (None, bool, str) – Background layer as accepted by
decorate_map(), which defaults to theplot.map_layeroption- Returns:
cartopy.crs.Projection, None –
cartopy.crs.Mercator.GOOGLEfor a WMTS layer, else None
See also