holoviz-topics / EarthSim

Tools for working with and visualizing environmental simulations.
https://earthsim.holoviz.org
BSD 3-Clause "New" or "Revised" License
65 stars 21 forks source link

Vertex table updating on poly move #203

Open kcpevey opened 6 years ago

kcpevey commented 6 years ago

Vertex link/stream doesn't update the table when you move the poly/path.

If you single click on a path, the vertex table appears with vertex xy coords, as expected. If you click and drag the poly, the vertex table populates while the polygon is actively being dragged around, but after the poly is dropped, the vertex table clears. This doesn't appear to be expected behavior since the polygon still appears to be selected.

annot = PolyAndPointAnnotator(path_type=gv.Path, crs=ccrs.GOOGLE_MERCATOR,
    poly_columns =['Group'], polys=[sample_poly], vertex_columns=['Weight'], 
    point_columns=['foo'],  points=sample_points
)
annot.pprint()
annot.view()
kcpevey commented 6 years ago

Concise way of saying this:

If a poly is unselected, a click and drag causes the poly to be selected only during the drag. The poly will return to the unselected state after the click release.

philippjfr commented 6 years ago

Thanks, I'll probably tackle all the drawing tool related issues in one go again.