Skip to content

Commit d29c7bd

Browse files
authored
Update country-color-map.yaml
1 parent ac8e55d commit d29c7bd

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

power-apps/country-color-map/source/country-color-map.yaml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,35 @@ ComponentDefinitions:
13181318
Height: =Parent.Height
13191319
HoverBorderColor: =
13201320
HoverFill: =
1321-
Image: "=\"data:image/svg+xml,\" & EncodeUrl(\r\n \"\r\n\r\n\r\n<svg\r\n xmlns:mapsvg='http://mapsvg.com'\r\n xmlns:dc='http://purl.org/dc/elements/1.1/'\r\n xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\r\n xmlns:svg='http://www.w3.org/2000/svg'\r\n xmlns='http://www.w3.org/2000/svg'\r\n mapsvg:geoViewBox='-169.110266 83.600842 190.486279 -58.508473'\r\n width='1009.6727'\r\n height='665.96301'>\r\n\"&Concat(CountryColorMap.Items,\"<path\r\n d='\"&ThisRecord.d&\"'\r\n title='\"&ThisRecord.title&\"'\r\n id='\"&ThisRecord.id&\"' fill='\"&With(LookUp(CountryColorMap.ItemsColor,pays=id) As Couleur,If(IsBlank(Couleur),CountryColorMap.DefaultColor,Couleur.color))&\"' />\")&\" \r\n \r\n</svg>\r\n\r\n\"\r\n \r\n)"
1321+
Image: |-
1322+
="data:image/svg+xml," & EncodeUrl(
1323+
"<svg
1324+
xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
1325+
xmlns:svg='http://www.w3.org/2000/svg'
1326+
xmlns='http://www.w3.org/2000/svg'
1327+
geoViewBox='-169.110266 83.600842 190.486279 -58.508473'
1328+
width='1009.6727'
1329+
height='665.96301'>
1330+
" & Concat(
1331+
CountryColorMap.Items,
1332+
"<path
1333+
d='" & ThisRecord.d & "'
1334+
title='" & ThisRecord.title & "'
1335+
id='" & ThisRecord.id & "' fill='" & With(
1336+
LookUp(
1337+
CountryColorMap.ItemsColor,
1338+
pays = id
1339+
) As Couleur,
1340+
If(
1341+
IsBlank(Couleur),
1342+
CountryColorMap.DefaultColor,
1343+
Couleur.color
1344+
)
1345+
) & "' />"
1346+
) & "
1347+
</svg>
1348+
"
1349+
)
13221350
PressedBorderColor: =
13231351
PressedFill: =
13241352
Width: =Parent.Width

0 commit comments

Comments
 (0)