0
0
Tableaubi_tool~10 mins

Map layers in Tableau - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add a map layer showing state boundaries.

Tableau
MapLayers.AddLayer([1])
Drag options to blanks, or click blank then click option'
AStateBoundaries
BCityPoints
CCountryBorders
DPopulationHeatmap
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a layer that shows cities instead of states.
Using a heatmap layer instead of boundary lines.
2fill in blank
medium

Complete the code to set the map layer opacity to 50%.

Tableau
MapLayers.SetOpacity([1])
Drag options to blanks, or click blank then click option'
A0.5
B1.0
C0.75
D0.25
Attempts:
3 left
💡 Hint
Common Mistakes
Using 50 instead of 0.5 for opacity.
Choosing full opacity (1.0) instead of 50%.
3fill in blank
hard

Fix the error in the code to add a heatmap layer.

Tableau
MapLayers.AddLayer([1])
Drag options to blanks, or click blank then click option'
AHeatMapLayer
BHeatmap
CHeatmapLayer
DHeatmap_Layer
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect casing like HeatMapLayer.
Adding underscores in the layer name.
4fill in blank
hard

Fill both blanks to create a map layer with circle markers and set its color to blue.

Tableau
layer = MapLayers.CreateLayer([1])
layer.SetColor([2])
Drag options to blanks, or click blank then click option'
ACircleMarkers
BBlue
CRed
DSquareMarkers
Attempts:
3 left
💡 Hint
Common Mistakes
Using square markers instead of circles.
Setting the color to red instead of blue.
5fill in blank
hard

Fill all three blanks to add a polygon layer, set its fill color to green, and set opacity to 0.3.

Tableau
polyLayer = MapLayers.AddLayer([1])
polyLayer.SetFillColor([2])
polyLayer.SetOpacity([3])
Drag options to blanks, or click blank then click option'
APolygonLayer
BGreen
C0.3
DBlue
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong layer type like CircleMarkers.
Setting opacity to 1 instead of 0.3.
Choosing blue instead of green for fill color.