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
4 changes: 2 additions & 2 deletions src/composables/useSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ export const get_global_pmtiles_url = (year: number) => {
}

export const AREA_OVERVIEW_COG =
'https://s3.us-west-2.amazonaws.com/us-west-2.opendata.source.coop/m-mohr/ftw-confidence-layers/prue_v1_field_area_500m_fieldsonly.tif'
'https://s3.us-west-2.amazonaws.com/us-west-2.opendata.source.coop/m-mohr/ftw-confidence-layers/prue_v1_field_area_500m_fieldsonly_uint8_3857.tif'
export const CONFIDENCE_OVERVIEW_COG =
'https://s3.us-west-2.amazonaws.com/us-west-2.opendata.source.coop/m-mohr/ftw-confidence-layers/prue_v1_confidence_global.tif'
'https://s3.us-west-2.amazonaws.com/us-west-2.opendata.source.coop/m-mohr/ftw-confidence-layers/prue_v1_confidence_global_uint8_3857.tif'

export default function useSettings() {
return {
Expand Down
8 changes: 6 additions & 2 deletions src/layers/Global-Overview-Layers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ export const createGlobalOverviewLayer = (settings: Settings) => {
source: new GeoTIFF({
sources: [
{
// todo: try https://tiles.rdnt.io/tiles/{z}/{x}/{y}@2x?url=
url: settings.aggregate === 'confidence' ? CONFIDENCE_OVERVIEW_COG : AREA_OVERVIEW_COG,
nodata: 255,
min: 0,
max: settings.aggregate === 'confidence' ? 1 : 2500,
max: 200,
},
],
interpolate: false,
sourceOptions: {
blockSize: 512 * 1024, // 512KB: capture all IFDs in 1-2 requests instead of 100+
},
Comment on lines +48 to +50
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This works around a temporary ol/geotiff issue - with ol@10.9 and geotiff@3.1.0-beta.0, you don't need it. But it also does not hurt keeping it.

}),
minZoom: 0,
maxZoom: GLOBAL_DATA_MAP_FIELD_START_ZOOM_LEVEL,
Expand Down
Loading