map_layer parameter lets you associate a dimension with a TopoJSON map layer. This lets users create map charts by charting the values in the dimension on the map layer. For example, to be able to chart data by US state, you could associate a dimension called “State” to the built-in map layer
us_states. You could also chart data in a dimension called “Neighborhood” to a custom map of New York City neighborhoods.
If you are using a custom TopoJSON map, you must specify the map layer in the LookML model using the
Built-in Map Layers
Looker includes the following built-in map layers:
countries- Accepts full country names, alpha-3 three-letter country codes, and alpha-2 two-letter country codes.
uk_postcode_areas- Accepts UK postcode areas (e.g.
RHfor Redhill, or
us_states- Accepts full state names and two-letter state abbreviations.
us_counties_fips- Works on string fields that are a five-character FIPS county code for a U.S. county. This layer works only on the interactive map.
us_zipcode_tabulation_areas- This layer works on string fields that are a five-character U.S. zipcode. Dimensions of
type: zipcodeautomatically use the
Note: Zipcode regions are based on the 2010 zip code tabulation areas, so this map layer does not include many zipcodes like P.O. boxes that do not map directly to regions.