Skip to content

Commit ae7394f

Browse files
committed
Minor updates
1 parent 0b4583d commit ae7394f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

articles/azure-maps/map-add-heat-map-layer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ map.sources.add(datasource);
4444
//Load a dataset of points, in this case earthquake data from the USGS.
4545
datasource.importDataFromUrl('https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.geojson');
4646

47-
//Create a heatmap and add it to the map.
47+
//Create a heat map and add it to the map.
4848
map.layers.add(new atlas.layer.HeatMapLayer(datasource, null, {
4949
radius: 10,
5050
opacity: 0.8
@@ -74,7 +74,7 @@ The previous example customized the heat map by setting the radius and opacity o
7474
| \[<br/>&nbsp;&nbsp;&nbsp;&nbsp;'interpolate',<br/>&nbsp;&nbsp;&nbsp;&nbsp;\['linear'\],<br/>&nbsp;&nbsp;&nbsp;&nbsp;\['heatmap-density'\],<br/>&nbsp;&nbsp;&nbsp;&nbsp;0, 'transparent',<br/>&nbsp;&nbsp;&nbsp;&nbsp;0.01, 'purple',<br/>&nbsp;&nbsp;&nbsp;&nbsp;0.5, '#fb00fb',<br/>&nbsp;&nbsp;&nbsp;&nbsp;1, '#00c3ff'<br/>\] | \[<br/>&nbsp;&nbsp;&nbsp;&nbsp;'step',<br/>&nbsp;&nbsp;&nbsp;&nbsp;\['heatmap-density'\],<br/>&nbsp;&nbsp;&nbsp;&nbsp;'transparent',<br/>&nbsp;&nbsp;&nbsp;&nbsp;0.01, 'navy',<br/>&nbsp;&nbsp;&nbsp;&nbsp;0.25, 'green',<br/>&nbsp;&nbsp;&nbsp;&nbsp;0.50, 'yellow',<br/>&nbsp;&nbsp;&nbsp;&nbsp;0.75, 'red'<br/>\] |
7575

7676
- `opacity`: Specifies how opaque or transparent the heat map layer is.
77-
- `intensity`: Applies a multiplier to the weight of each data point to increase the overall intensity of the heatmap. This helps to make the small differences in the weight of data points easier to visualize.
77+
- `intensity`: Applies a multiplier to the weight of each data point to increase the overall intensity of the heat map. This helps to make the small differences in the weight of data points easier to visualize.
7878
- `weight`: By default, all data points have a weight of 1, and are weighted equally. The weight option acts as a multiplier, and you can set it as a number or an expression. If a number (for example, 2) is set as the weight, it's the equivalent of placing each data point on the map twice, thus doubling the density. Setting the weight option to a number renders the heat map in a similar way to using the intensity option.
7979

8080
However, if you use an expression, the weight of each data point can be based on the properties of each data point. For example, suppose that each data point represents an earthquake. An important metric each earthquake data point has is a magnitude value. Earthquakes happen all the time, but most have a low magnitude, and aren't even felt. By using the magnitude value in an expression to assign the weight to each data point, you get a better representation of the significance of earthquakes within the heat map.
@@ -109,7 +109,7 @@ Scaling the radius so that it doubles with each zoom level creates a heat map th
109109
> weight: ['get', 'point_count']
110110
> });
111111
> ```
112-
> If the clustering radius is only a few pixels, there's little visual difference in the rendering. A larger radius groups more points into each cluster, and improves the performance of the heatmap.
112+
> If the clustering radius is only a few pixels, there's little visual difference in the rendering. A larger radius groups more points into each cluster, and improves the performance of the heat map.
113113
114114
## Next steps
115115

articles/azure-maps/map-extruded-polygon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ When a [polygon extrusion layer](https://docs.microsoft.com/javascript/api/azure
2929
See the Pen <a href='https://codepen.io/azuremaps/pen/wvvBpvE'>Extruded polygon</a> by Azure Maps (<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.</iframe>
3030

3131

32-
## Add data driven multipolygons
32+
## Add data driven polygons
3333

3434
A choropleth map can be rendered using the polygon extrusion layer, by setting its `height` and `fillColor` properties in proportion to the measurement of the statistical variable in the `Polygon` and `MultiPolygon` feature geometries. The following code sample shows an extruded choropleth Map of the U.S based on the measurement of the population density by state.
3535

0 commit comments

Comments
 (0)