Skip to content

Emojis

Use the bundled emoji sprites to make a world map with flags for each country

---
title: Emojis
description: Use the bundled emoji sprites to make a world map with flags for each country
style:
  layers:
    - id: geolines
      visibility: none
    - id: geolines-label
      visibility: none
    - id: countries-label
      visibility: none
    - type: symbol
      icon-overlap: always
      icon-image:
        - coalesce
        - - image
          - - concat
            - 'emoji:flag-'
            - - downcase
              - - coalesce
                - [ get, ISO3166-1:alpha2 ]
                - [ get, country_code_iso3166_1_alpha_2 ]
                - [ get, country_code_fips ]
                - [ get, country_code_iso3166_1 ]
                - [ get, ISO3166-1 ]
        - - image
          - emoji:question
  extends: https://demotiles.maplibre.org/style.json
---
node[place=country];
out center;


View Map on Ultra
Edit Query on Ultra