Skip to content

Commit 7261d18

Browse files
committed
minor typo fixes
1 parent 25beae6 commit 7261d18

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

Samples/Popups/Popup templates/Popup templates.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
label: 'Code samples',
121121
hideLabel: true,
122122
hyperlinkFormat: {
123-
lable: 'Go to code samples!',
123+
label: 'Go to code samples!',
124124
target: '_blank'
125125
}
126126
},
@@ -152,7 +152,7 @@
152152
{
153153
propertyPath: 'imageLink',
154154
label: 'Image',
155-
hideImageLabel: true,
155+
hideLabel: true,
156156
hyperlinkFormat: {
157157
isImage: true
158158
}

Samples/Vector tiles/Vector tile heat map/Vector tile heat map.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
});
5858
map.sources.add(datasource);
5959

60-
//Create a layer for traffic flow lines.
61-
var flowLayer = new atlas.layer.HeatMapLayer(datasource, null, {
60+
//Create a layer for a traffic flow heat map.
61+
var heatMapLayer = new atlas.layer.HeatMapLayer(datasource, null, {
6262
//The name of the data layer within the data source to pass into this rendering layer.
6363
sourceLayer: 'Traffic flow',
6464

@@ -73,11 +73,8 @@
7373
filter: ['<', ['get', 'traffic_level'], 0.80]
7474
});
7575

76-
//Add the traffic flow layer below the labels to make the map clearer.
77-
map.layers.add(flowLayer, 'labels');
78-
79-
//Add a click event to the layer to display details about the traffic flow line.
80-
map.events.add('click', flowLayer, featureClicked);
76+
//Add the traffic flow heat map layer below the labels to make the map clearer.
77+
map.layers.add(heatMapLayer, 'labels');
8178
});
8279
}
8380

0 commit comments

Comments
 (0)