-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display selected datasets on the map (#668)
Done so far: - Displays selected datasets on the map - Dataset order support - Dataset opacity support Compare is not possible yet.
- Loading branch information
Showing
10 changed files
with
302 additions
and
129 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
app/scripts/components/common/map/hooks/use-generator-params.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { useMemo } from 'react'; | ||
import { BaseGeneratorParams } from '../types'; | ||
|
||
export default function useGeneratorParams(props: BaseGeneratorParams) { | ||
return useMemo(() => { | ||
return props; | ||
// Memoize only required abse params | ||
}, [props.generatorOrder, props.hidden, props.opacity]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.