This will produce a panel with the map on the left and tabs on the right for the polygon table and the vertex table. The vertex table is the listing of the lat/longs for all the vertices on the polygon. This works as it should.
Now, with the annotators we can easily switch this to paths using
gvdata = gv.Path(data=[sample_poly], crs=ccrs.GOOGLE_MERCATOR)
which will properly display paths on the map. However, the vertex table will not populate when a path is selected.
In order to get the table to populate properly, one must use:
annotator = PolyAnnotator(path_type=hv.Path, polys=gvdata) to explicitly specify the path_type.
It's quite confusing that path_type is not required for proper map visualization but IS required for table visualization.
We can specify an annotator like this:
This will produce a panel with the map on the left and tabs on the right for the polygon table and the vertex table. The vertex table is the listing of the lat/longs for all the vertices on the polygon. This works as it should.
Now, with the annotators we can easily switch this to paths using
gvdata = gv.Path(data=[sample_poly], crs=ccrs.GOOGLE_MERCATOR)
which will properly display paths on the map. However, the vertex table will not populate when a path is selected.
In order to get the table to populate properly, one must use:
annotator = PolyAnnotator(path_type=hv.Path, polys=gvdata)
to explicitly specify the path_type.It's quite confusing that
path_type
is not required for proper map visualization but IS required for table visualization.