Skip to content

Conversation

@epou
Copy link
Member

@epou epou commented Apr 4, 2024

No description provided.

@epou epou added the enhancement New feature or request label Apr 4, 2024
@epou epou requested a review from aescobarr April 4, 2024 09:44
@epou epou self-assigned this Apr 4, 2024
Comment on lines +127 to +128
mapserverUrl: 'https://mapserver-ifca.mosquitoalert.com/geoserver/',
tilesUrl: 'https://mapserver-ifca.mosquitoalert.com/geoserver/gwc/service/tms/1.0.0/',
Copy link
Member Author

Choose a reason for hiding this comment

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

Use production URLs

// Get the data from CSV if provided and determine color based on probability
const dataObj = csvIndex !== undefined ? CSVS[csvIndex] : {}
const color = dataObj !== undefined && dataObj[id] !== undefined ? estimationColors[Math.floor(dataObj[id].prob * estimationColors.length)] : '#D9D9D9'
Copy link
Member Author

Choose a reason for hiding this comment

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

estimationColors[Math.min(Math.floor(dataObj[id].prob * estimationColors.length), estimationColors.length - 1)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants