Skip to content

Allow data transitions when working with millions of data points? #9110

Discussion options

You must be logged in to vote

I am not sure why you need to change data. Your layer should look something like this:

function renderLayer(dataVersion: string) {
	return new H3HexagonLayer<string>({
	  data,
	  getHexagon: (hex_id: string) => hex_id,
	  getElevation: (hex_id: string) => getCellElevation(hex_id),
	  updateTrigger: {
	    getElevation: [dataVersion]
	  },
	  transition: {
	    getElevation: 3000
	  }
	});
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kevin-daniel-hunt
Comment options

Answer selected by kevin-daniel-hunt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants