gdcc / dataverse-previewers

A collection of Datafile Previewers that can be configured to work with Dataverse
MIT License
5 stars 15 forks source link

Add properties to geojson preview #8

Closed kaitlinnewson closed 2 years ago

kaitlinnewson commented 2 years ago

Show the properties of the geoJson feature when a user clicks on the feature. Converts them to strings to handle cases where the property is a JSON object.

Here's a dataset with some files that can be used for testing, including some with and without properties. The "wikipedia.geojson" files has a JSON object in the properties: https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.70122/FK2/BMUCT5&version=2.0

GeoJSON file preview showing properties

GeoJSON file preview with a JSON property