for more information visit the package's GitHub page
Package contains the following modules:
Information about world countries. This library contains lists of facts about countries.
Find the name of a country including the country name in local language in parenthesis
Find the flag of a country in this sprite sheet.
> import Iso3166
> Dict.get Iso3166.flagPositions "MX"
Just ( -112, -144 )
: Maybe.Maybe (Float, Float)
> import Html exposing (div)
> (x, y) = (-112, -144)
> div
[ style "background-image" ("url(\"" ++ Iso3166.flagImageData ++ "\")"
, style "background-position" (String.fromFloat x ++ "px " ++ String.fromFloat y ++ "px")
, style "width" "16px"
, style "height" "16px"
]
[]