User Guide Getting Started Help Center Documentation Community Training
New LookML
Old LookML
New LookML
Looker
  
English
Français
Deutsch
日本語
map_layer_name

Usage

view: view_name {
  dimension: field_name {
    map_layer_name: name_of_map_layer
  }
}

Hierarchy

map_layer_name

Possible Field Types

Dimension

Accepts

A map name specified in the model-level map_layer parameter

Basics

The map_layer_name 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 map_layer parameter.

Dimensions of type: zipcode automatically receive a map_layer_name of us_zipcode_tabulation_areas.

Built-in Map Layers

Looker includes the following built-in map layers:

Zip code regions are based on the 2010 zip code tabulation areas (ZCTAs), so this map layer does not include many zipcodes like P.O. boxes that do not map directly to regions.

Example

dimension: state { map_layer_name: us_states sql: ${TABLE}.state ;; }

Top