Generate a "compacted" list of items based on a full item
list. This finds all items that are close to eachother, within a
distance of "dist", and creates one item that references all of
the close items. This is good when a map would show a bunch of
hard-to-read overlapping items at a spot, but will now show one single
item instead.
- Parameters:
items (list of Point items) - list of items to compact
dist (float ) - threshold distance between items
node_id (NodeId) - NodeId object to get ids for zoomed items
|