File tree Expand file tree Collapse file tree 4 files changed +43
-10
lines changed Expand file tree Collapse file tree 4 files changed +43
-10
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export default function ItemCard() {
7171 </ Text >
7272 </ CardBody >
7373 < CardFooter as = 'footer' >
74- < HStack spacing = { 4 } >
74+ < HStack spacing = { 2 } >
7575 < Tag size = 'sm' colorScheme = 'primary' as = 'a' href = '#' >
7676 Tag
7777 </ Tag >
Original file line number Diff line number Diff line change @@ -188,17 +188,17 @@ function CollectionDetail() {
188188 < Heading size = 'sm' as = 'h3' >
189189 Keywords
190190 </ Heading >
191- < HStack spacing = { 4 } >
192- < Tag size = 'sm ' colorScheme = 'primary' as = 'a' href = '#' >
191+ < HStack spacing = { 2 } >
192+ < Tag size = 'md ' colorScheme = 'primary' as = 'a' href = '#' >
193193 Tag
194194 </ Tag >
195- < Tag size = 'sm ' colorScheme = 'primary' as = 'a' href = '#' >
195+ < Tag size = 'md ' colorScheme = 'primary' as = 'a' href = '#' >
196196 Tag
197197 </ Tag >
198- < Tag size = 'sm ' colorScheme = 'primary' as = 'a' href = '#' >
198+ < Tag size = 'md ' colorScheme = 'primary' as = 'a' href = '#' >
199199 Tag
200200 </ Tag >
201- < Tag size = 'sm ' colorScheme = 'primary' as = 'a' href = '#' >
201+ < Tag size = 'md ' colorScheme = 'primary' as = 'a' href = '#' >
202202 Tag
203203 </ Tag >
204204 </ HStack >
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import {
1414 Box ,
1515 SimpleGrid ,
1616 InputGroup ,
17- InputLeftElement ,
1817 Input ,
1918 InputRightElement ,
2019 Select ,
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ import {
1313 Heading ,
1414 Badge ,
1515 GridItem ,
16- HStack ,
17- Tag ,
1816 Grid ,
1917 VisuallyHidden
2018} from '@chakra-ui/react' ;
@@ -183,7 +181,43 @@ function ItemDetail() {
183181 < Heading size = 'sm' as = 'h3' >
184182 < VisuallyHidden > Spacial extent</ VisuallyHidden >
185183 </ Heading >
186- < Text size = 'md' > Map goes here.</ Text >
184+ < Box position = 'absolute' inset = '0' >
185+ < Map
186+ ref = { setMapRef }
187+ dragPan = { false }
188+ scrollZoom = { false }
189+ cursor = 'default'
190+ >
191+ < BackgroundTiles />
192+ { previewAsset && (
193+ < Source
194+ id = 'preview'
195+ type = 'raster'
196+ tiles = { [
197+ `http://tiles.rdnt.io/tiles/{z}/{x}/{y}@2x?url=${ previewAsset } `
198+ ] }
199+ tileSize = { 256 }
200+ attribution = "Background tiles: © <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap contributors</a>"
201+ >
202+ < Layer id = 'preview-tiles' type = 'raster' />
203+ </ Source >
204+ ) }
205+ < Source id = 'results' type = 'geojson' data = { item } >
206+ < Layer
207+ id = 'results-line'
208+ type = 'line'
209+ paint = { resultsOutline }
210+ />
211+ { ! previewAsset && (
212+ < Layer
213+ id = 'results-fill'
214+ type = 'fill'
215+ paint = { resultsFill }
216+ />
217+ ) }
218+ </ Source >
219+ </ Map >
220+ </ Box >
187221 </ Flex >
188222 </ GridItem >
189223 </ Grid >
You can’t perform that action at this time.
0 commit comments