Skip to content

Commit

Permalink
Use new ocean fill
Browse files Browse the repository at this point in the history
  • Loading branch information
katamartin committed May 23, 2022
1 parent 449f4d9 commit b103fb7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion demo/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react'
import { Box, useThemeUI } from 'theme-ui'
import { Dimmer, Meta } from '@carbonplan/components'
import { Map, Raster, Line, RegionPicker } from '@carbonplan/maps'
import { Map, Raster, Fill, Line, RegionPicker } from '@carbonplan/maps'
import { useColormap } from '@carbonplan/colormaps'
import RegionControls from '../components/region-controls'
import ParameterControls from '../components/parameter-controls'
Expand Down Expand Up @@ -43,6 +43,11 @@ const Index = () => {
/>
<Box sx={{ position: 'absolute', top: 0, bottom: 0, width: '100%' }}>
<Map zoom={2} center={[0, 0]} debug={debug}>
<Fill
color={theme.rawColors.background}
source={bucket + 'basemaps/ocean'}
variable={'ocean'}
/>
<Line
color={theme.rawColors.primary}
source={bucket + 'basemaps/land'}
Expand Down

1 comment on commit b103fb7

@vercel
Copy link

@vercel vercel bot commented on b103fb7 May 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.