Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/map-interface/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ All notable changes to this project will be documented in this file. The format
is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.5.6] - 2025-08-01

- Fossils component just show data, not panel
- Better error handling for components

## [1.5.5] - 2025-08-01

- MAcrostrat linked data error handling
- Macrostrat linked data error handling

## [1.5.4] - 2025-07-31

Expand Down
2 changes: 1 addition & 1 deletion packages/map-interface/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@macrostrat/map-interface",
"version": "1.5.5",
"version": "1.5.6",
"description": "Map interface for Macrostrat",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import h from "@macrostrat/hyper";
import { ExpansionPanel } from "@macrostrat/map-interface";
import PBDBCollections from "./collections";

export function FossilCollections(props) {
Expand All @@ -8,14 +7,5 @@ export function FossilCollections(props) {
if (!data || data.length <= 0) {
return null;
}
return h(
ExpansionPanel,
{
className: "regional-panel",
title: "Fossil collections",
helpText: "via PBDB",
expanded,
},
[h(PBDBCollections, { data })],
);
return h(PBDBCollections, { data });
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ export function RegionalStratigraphyExample() {
const mapInfo = fetchMapInfo(lng, lat, zoom);
const columnInfo = fetchColumnInfo(lng, lat);

if (!mapInfo || !mapInfo.mapData) {
return null;
}

return h(RegionalStratigraphy, {
mapInfo,
columnInfo,
Expand All @@ -41,10 +37,6 @@ export function RegionalStratigraphyExample() {
export function PhysiographyExample() {
const mapInfo = fetchMapInfo(lng, lat, zoom);

if (!mapInfo) {
return null;
}

return h(Physiography, {
mapInfo,
expanded: true,
Expand All @@ -54,10 +46,6 @@ export function PhysiographyExample() {
export function MacrostratLinkedDataExample() {
const mapInfo = fetchMapInfo(lng, lat, zoom);

if (!mapInfo) {
return null;
}

const source =
mapInfo && mapInfo?.mapData && mapInfo?.mapData.length
? mapInfo?.mapData[0]
Expand Down Expand Up @@ -96,9 +84,5 @@ export function xddInfoExample() {
export function FossilsExample() {
const fossilInfo = fetchFossilInfo(-89.3938453, 43.0735407);

if (!fossilInfo) {
return null;
}

return h(FossilCollections, { data: fossilInfo, expanded: true });
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function MacrostratLinkedData(props) {
expanded = true,
} = props;

if (!mapInfo.mapData[0]) return h("div");
if (!mapInfo.mapData[0]) return null;

return h(
ExpansionPanel,
Expand Down