geojson.io icon indicating copy to clipboard operation
geojson.io copied to clipboard

Add numbers and booleans to Table

Open KempWatson opened this issue 3 years ago • 2 comments

Table currently has only strings - would be great to be able to add numeric and boolean columns as well. Would really help with export/import to other applications.

KempWatson avatar Nov 10 '22 19:11 KempWatson

I just tested this with a number and a boolean in my properties. Changing a 3 to 4 in the table resulted in a number in the geojson, but changing a false to true resulted in the string "true" in the data.

The table is created using d3-metatable. Unclear what the lift would be for adding a way to specify the type on properties.

chriswhong avatar Nov 10 '22 19:11 chriswhong

Maybe as a part of this, but switching to a table component that would allow for highlight/copy/paste multiple rows and drag-to-fill à la spreadsheets would be a game changer.

I’m not referring to formulas or anything, just the text manipulation.

I would love to help, but I don’t know much in the way of JS or web development

fedderw avatar Nov 29 '22 04:11 fedderw