polartoolkit.interactive_map#
- interactive_map(hemisphere=None, epsg=None, center_yx=None, zoom=None, display_xy=True, points=None, basemap_type=None, **kwargs)[source]#
Plot an interactive map with various basemaps. Clicking gives the cursor location in a the supplied projection [x,y]. Requires ipyleaflet
- Parameters:
hemisphere (str, optional) – set whether to plot in “north” hemisphere (EPSG:3413) or “south” hemisphere (EPSG:3031), can be set manually, or will read from the environment variable: “POLARTOOLKIT_HEMISPHERE”
epsg (str | None, optional) – set which EPSG projection to use for plotting, can be set manually, or will read from the environment variable: “POLARTOOLKIT_EPSG”, by default None
center_yx (tuple, optional) – choose center coordinates in projected units [y,x], by default None
zoom (float, optional) – choose zoom level, by default None
display_xy (bool, optional) – choose if you want clicks to show the xy location, by default True
show (bool, optional) – choose whether to display the map, by default True
points (pandas.DataFrame, optional) – choose to plot points supplied as columns ‘x’, ‘y’, or ‘easting’, ‘northing’, in the supplied projection in a dataframe
basemap_type (str, optional) – choose what basemap to plot, options are ‘BlueMarble’, ‘Imagery’, ‘Basemap’, and “IceVelocity”, by default ‘BlueMarble’ for northern hemisphere and ‘Imagery’ for southern hemisphere.
kwargs (
Any)
- Returns:
interactive map
- Return type: