You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-maps/map-extruded-polygon.md
+17-11Lines changed: 17 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
---
2
-
title: Add a polygon extrusion layer to a map | Microsoft Azure Maps
2
+
title: Add a polygon extrusion layer to a map
3
+
titleSuffix: Microsoft Azure Maps
3
4
description: How to add a polygon extrusion layer to the Microsoft Azure Maps Web SDK.
4
5
author: dubiety
5
6
ms.author: yuchungchen
@@ -10,11 +11,11 @@ ms.service: azure-maps
10
11
11
12
# Add a polygon extrusion layer to the map
12
13
13
-
This article shows you how to use the polygon extrusion layer to render areas of `Polygon` and `MultiPolygon` feature geometries as extruded shapes. The Azure Maps Web SDK supports rendering of Circle geometries as defined in the [extended GeoJSON schema](extend-geojson.md#circle). These circles can be transformed into polygons when rendered on the map. All feature geometries may be updated easily when wrapped with the [atlas.Shape](/javascript/api/azure-maps-control/atlas.shape) class.
14
+
This article shows you how to use the polygon extrusion layer to render areas of `Polygon` and `MultiPolygon` feature geometries as extruded shapes. The Azure Maps Web SDK supports rendering of Circle geometries as defined in the [extended GeoJSON schema]. These circles can be transformed into polygons when rendered on the map. All feature geometries may be updated easily when wrapped with the [atlas.Shape] class.
14
15
15
16
## Use a polygon extrusion layer
16
17
17
-
Connect the [polygon extrusion layer](/javascript/api/azure-maps-control/atlas.layer.polygonextrusionlayer) to a data source. Then, loaded it on the map. The polygon extrusion layer renders the areas of a `Polygon` and `MultiPolygon` features as extruded shapes. The `height` and `base` properties of the polygon extrusion layer define the base distance from the ground and height of the extruded shape in **meters**. The following code shows how to create a polygon, add it to a data source, and render it using the Polygon extrusion layer class.
18
+
Connect the [polygon extrusion layer] to a data source. Then, loaded it on the map. The polygon extrusion layer renders the areas of a `Polygon` and `MultiPolygon` features as extruded shapes. The `height` and `base` properties of the polygon extrusion layer define the base distance from the ground and height of the extruded shape in **meters**. The following code shows how to create a polygon, add it to a data source, and render it using the Polygon extrusion layer class.
18
19
19
20
> [!NOTE]
20
21
> The `base` value defined in the polygon extrusion layer should be less than or equal to that of the `height`.
@@ -123,7 +124,7 @@ The [Create a Choropleth Map] sample shows an extruded choropleth map of the Uni
123
124
124
125
## Add a circle to the map
125
126
126
-
Azure Maps uses an extended version of the GeoJSON schema that provides a [definition for circles](./extend-geojson.md#circle). An extruded circle can be rendered on the map by creating a `point` feature with a `subType` property of `Circle` and a numbered `Radius` property representing the radius in **meters**. For example:
127
+
Azure Maps uses an extended version of the GeoJSON schema that provides a [definition for circles]. An extruded circle can be rendered on the map by creating a `point` feature with a `subType` property of `Circle` and a numbered `Radius` property representing the radius in **meters**. For example:
127
128
128
129
```javascript
129
130
{
@@ -205,18 +206,23 @@ The Polygon Extrusion layer has several styling options. The [Polygon Extrusion
205
206
Learn more about the classes and methods used in this article:
0 commit comments