-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SKY30-469/SKY30-471 - Display new layer popups
- Loading branch information
1 parent
a08e491
commit 1956698
Showing
3 changed files
with
51 additions
and
20 deletions.
There are no files selected for viewing
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
33 changes: 33 additions & 0 deletions
33
frontend/src/containers/map/content/map/popup/constants.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,33 @@ | ||
import { IconProps } from '@/components/ui/icon'; | ||
import Mountain from '@/styles/icons/mountain.svg'; | ||
import Wave from '@/styles/icons/wave.svg'; | ||
|
||
export const HOVER_POPUP_PROPERTIES_BY_SOURCE = { | ||
'ezz-source': { | ||
en: 'GEONAME', | ||
es: 'GEONAME_ES', | ||
fr: 'GEONAME_FR', | ||
}, | ||
'regions-source': { | ||
en: 'name', | ||
es: 'name_es', | ||
fr: 'name_fr', | ||
}, | ||
'gadm-countries': { | ||
en: 'COUNTRY', | ||
es: 'name_es', | ||
fr: 'name_fr', | ||
}, | ||
'gadm-regions': { | ||
en: 'name', | ||
es: 'name_es', | ||
fr: 'name_fr', | ||
}, | ||
}; | ||
|
||
export const HOVER_POPUP_ICON_BY_SOURCE = { | ||
'ezz-source': Wave as IconProps['icon'], | ||
'regions-source': Wave as IconProps['icon'], | ||
'gadm-countries': Mountain as IconProps['icon'], | ||
'gadm-regions': Mountain as IconProps['icon'], | ||
}; |
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