Skip to content

Dataset locations map

Dataset locations come with decimalLatitude, decimalLongitude. Just like on the accession details page, render one map with pins for each dataset location that comes with coordinates:

image

{ map.enabled && details.institute && details.geo.latitude && details.geo.longitude &&
  <LocationMap position={ { lat: details.geo.latitude, lng: details.geo.longitude } }/>
}

LocationMap should be updated to support an array of objects of {lat: number, lon: number} type.

Edited by Matija Obreza
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information