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

Annotators do not allow dragging points #244

Closed philippjfr closed 5 years ago

philippjfr commented 5 years ago

For some reason points are not draggable when using the annotators but when running through the drawing tools notebook it works fine.

kcpevey commented 5 years ago

Code snippet that does produce the error:

data_df = pd.read_csv(input_param.hurricane_path_file, delimiter=',', header=0, parse_dates=['Datetime'])
gvpath = gv.Path([data_df], kdims=['Longitude', 'Latitude'], vdims=['Datetime','Pressure','Max_Wind_Speed','Radius',
                                                                    'Direction_Degrees','Direction_Speed'], 
                 crs=proj).redim.range(Max_Wind_Speed=(35, 155))
gvpoint = gv.Points(data_df, kdims=['Longitude', 'Latitude'], vdims=['Datetime','Pressure','Max_Wind_Speed','Radius',
                                                                     'Direction_Degrees','Direction_Speed'], 
                    crs=proj).redim.range(Max_Wind_Speed=(35, 155))
annot = PolyAndPointAnnotator(path_type=Path, polys=gvpath, points=gvpoint,
                              point_columns=['Pressure','Max_Wind_Speed'],
                              tile_url='https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}',
                              crs=proj)

(annot.tiles * annot.polys * annot.points + annot.point_table).cols(1) 

proj = ccrs.PlateCarree()
hurricane_path_file = florence.txt

florence.txt

philippjfr commented 5 years ago

Can't reproduce this anymore, please reopen if you can @kcpevey.