Adding a vector e.g. .shp file to Leafmap and enable ipywidgets drop down mapping? #1146
-
I would like to add vector data from a .shp file, once I initiate adding the first point and the attribute table that pops up, I would like this to pre-populate the columns key from the template .shp (this is already possible) and for value column I would like to create pre-set drop down options to quickly fill the entries. @giswqs Thank you for suggesting this as a solution to creating drop downs https://stackoverflow.com/questions/72942721/how-to-embed-a-dropdown-ipywidget-in-an-ipysheet-spreadsheet. Could I please seek your advice on how this code can be incorporated with Leafmap. I currently add a template .shp with column names set using the toolbox icon rather than code. I would appreciate any guidance that can be shared. Best wishes, Penny |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can design you own widget using ipywidget, then construct a WidgetControl to add it to the map. Use ChatGPT for help if needed. https://ipyleaflet.readthedocs.io/en/latest/controls/widget_control.html |
Beta Was this translation helpful? Give feedback.
You can design you own widget using ipywidget, then construct a WidgetControl to add it to the map. Use ChatGPT for help if needed.
https://ipyleaflet.readthedocs.io/en/latest/controls/widget_control.html