diff --git a/src/assets/contributors-map.geojson b/src/assets/contributors-map.geojson index d66e0ec4a..fc068897b 100644 --- a/src/assets/contributors-map.geojson +++ b/src/assets/contributors-map.geojson @@ -136,6 +136,21 @@ ] } }, + { + "type": "Feature", + "properties": { + "firstName": "Alex", + "githubId": "alexoj46", + "favoriteCrag": "b81f8942-4e04-56eb-a681-84568676c681" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 34.18008, + -85.81680 + ] + } + }, { "type": "Feature", "properties": { diff --git a/src/pages/climbs/[id].tsx b/src/pages/climbs/[id].tsx index 1c3434e8f..e8ba67ef7 100644 --- a/src/pages/climbs/[id].tsx +++ b/src/pages/climbs/[id].tsx @@ -26,7 +26,7 @@ import { ClientSideFormSaveAction, Skeleton as ContentSkeleton } from '../../com import { ArticleLastUpdate } from '../../components/edit/ArticleLastUpdate' import { TradSportGradeInput, BoulderingGradeInput } from '../../components/edit/form/GradeTextInput' import Grade from '../../js/grades/Grade' -import { removeTypenameFromDisciplines } from '../../js/utils' +import { getMapHref, removeTypenameFromDisciplines } from '../../js/utils' import { TotalLengthInput } from '../../components/edit/form/TotalLengthInput' import { LegacyFAInput } from '../../components/edit/form/LegacyFAInput' import { getClimbById } from '../../js/graphql/api' @@ -35,6 +35,7 @@ import { ClimbList } from '@/app/(default)/editArea/[slug]/general/components/cl import { getArea } from '@/js/graphql/getArea' import { climbLeftRightIndexComparator } from '@/js/utils' import { NeighboringRoutesNav } from '@/components/crag/NeighboringRoute' +import { MapPinLine } from '@phosphor-icons/react/dist/ssr' export const CLIMB_DESCRIPTION_FORM_VALIDATION_RULES: RulesType = { maxLength: { @@ -110,7 +111,7 @@ const Body = ({ climb, leftClimb, rightClimb, parentArea }: ClimbPageProps): JSX id, name, fa: legacyFA, length, yds, grades, type, content, safety, metadata, ancestors, pathTokens, authorMetadata, parent } = climb - const { climbId } = metadata + const { lat, lng, climbId } = metadata const gradesObj = new Grade(parent.gradeContext, grades, type, parent.metadata.isBoulder) @@ -287,10 +288,38 @@ const Body = ({ climb, leftClimb, rightClimb, parentArea }: ClimbPageProps): JSX )} - {(authorMetadata.createdAt != null || authorMetadata.updatedAt != null) && -
- -
} + {/* trying to put my stuff here */} +
+ + + + LAT,LNG  + + {(lat != null && lng != null) + ? ( + + {lat.toFixed(5)}, {lng.toFixed(5)} + + ) + : ( + + NA, NA + + )} + + + + + {(authorMetadata.createdAt != null || authorMetadata.updatedAt != null) && + } +
{!editMode &&