Maps.cb.pick

class eomaps.eomaps.Maps.cb.pick(picker_name='default', picker=None, *args, **kwargs)

Callbacks that select the nearest datapoint if you click on the map.

The event will search for the closest data-point and execute the callback with the properties (e.g. position , ID, value) of the selected point.

Note

To speed up identification of points for very large datasets, the search is limited to points located inside a β€œsearch rectangle”. The side-length of this rectangle is determined in the plot-crs and can be set via m.cb.pick.set_props(search_radius=…).

The default is to use a side-length of 50 times the dataset-radius.

attach : accessor for callbacks.

Executing the functions will attach the associated callback to the map!

get : accessor for return-objects

A container to provide easy-access to the return-values of the callbacks.

remove : remove prviously added callbacks from the map
forward_events : forward events to connected maps-objects
share_events : share events between connected maps-objects (e.g. forward both ways)
set_sticky_modifiers : define keypress-modifiers that remain active after release
set_props : set the picking behaviour (e.g. number of points, search radius, etc.)

Members

add_temporary_artist

Make an artist temporary (remove it from the map at the next event).

attach

Attach custom or pre-defined callbacks to the map.

execute_on_all_layers

Indicator if callbacks of this container are executed on all layers.

forward_events

Forward callback-events from this Maps-object to other Maps-objects.

get

Accessor for objects generated/retrieved by callbacks.

remove

Remove previously attached callbacks from the map.

set_execute_during_toolbar_action

Set if callbacks should be executed during a toolbar action (e.g. pan/zoom).

set_execute_on_all_layers

If True, callbacks of this container are executed even if the associated layer is not visible.

set_props

Set the picker-properties (number of picked points, max.

set_sticky_modifiers

Define keys on the keyboard that should be treated as "sticky modifiers".

share_events

Share callback-events between this Maps-object and other Maps-objects.