markο
- PickCallbacks.mark(radius=None, radius_crs=None, shape=None, buffer=1, permanent=False, n=20, zorder=10, layer=None, **kwargs)ο
Draw markers at the location where the map was clicked.
If permanent = True, the generated annotations are stored in a list which is accessible via m.cb.[click/pick].get.permanent_markers
Removing the callback will remove ALL markers that have been added to the map.
- Parameters:
radius (float, string or None, optional) β
If float: The radius of the marker in units of the βradius_crsβ.
If βpixelβ the pixel dimensions of the clicked pixel are used
If None: The radius of the data used for plotting (if available), otherwise 1/10 of the width and height
The default is None.
radius_crs (any) β
(only relevant if radius is NOT specified as βpixelβ)
The crs specification in which the radius is provided. - use βinβ for input-crs, βoutβ for plot-crs - or use any other crs-specification (e.g. wkt-string, epsg-code etc.)
If None, the radius_crs of the assigned plot-shape is used if possible (e.g. m.shape.radius_crs) and otherwise the input-crs is used (e.g. βinβ).
The default is None.
shape (str, optional) β
Indicator which shape to draw. Currently supported shapes are: - ellipses - rectangles - geod_circles
The default is None which defaults to the used shape for plotting if possible and else βellipsesβ.
buffer (float, optional) β A factor to scale the size of the shape. The default is 1.
permanent (bool or None) β
Indicator if the markers should be temporary (False) or permanent (True).
If True, the generated markers are stored in a list which is accessible via m.cb.[click/pick].get.permanent_markers
If None, the artists will be permanent but NOT added to the permanent_markers list!
The default is False
n (int) β The number of points to calculate for the shape. The default is 20.
zorder (int or float) β
The zorder of the artist. (e.g. the drawing-order) For details, have a look at:
The default is 10
layer (str or None, optional) β The layer to put the marker on. If None, the layer associated with the used Maps-object (e.g. m.layer) The default is None
kwargs β kwargs passed to the matplotlib patch. (e.g. facecolor, edgecolor, linewidth, alpha etc.)