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
See the Pen <a href='https://codepen.io/azuremaps/pen/qvzRZY/'>Basic bubble layer clustering</a> by Azure Maps
62
62
(<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
63
63
</iframe>
@@ -70,7 +70,7 @@ Use clustering to show the data points density while keeping a clean user interf
70
70
71
71
<br/>
72
72
73
-
<iframeheight="500"style="width: 100%;"scrolling="no"title="Clustered Symbol layer"src="//codepen.io/azuremaps/embed/Wmqpzz/?height=500&theme-id=0&default-tab=js,result"frameborder="no"allowtransparency="true"allowfullscreen="true">
73
+
<iframeheight="500"style="width: 100%;"scrolling="no"title="Clustered Symbol layer"src="//codepen.io/azuremaps/embed/Wmqpzz/?height=500&theme-id=0&default-tab=js,result&editable=true"frameborder="no"allowtransparency="true"allowfullscreen="true">
74
74
See the Pen <a href='https://codepen.io/azuremaps/pen/Wmqpzz/'>Clustered Symbol layer</a> by Azure Maps
75
75
(<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
76
76
</iframe>
@@ -81,7 +81,7 @@ Heat maps are a great way to display the density of data on the map. This visual
See the Pen <a href='https://codepen.io/azuremaps/pen/moZWeV/'>Cluster getClusterExpansionZoom</a> by Azure Maps
106
106
(<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
107
107
</iframe>
@@ -112,7 +112,7 @@ The point data that a cluster represents is spread over an area. In this sample
112
112
113
113
<br/>
114
114
115
-
<iframeheight="500"style="width: 100%;"scrolling="no"title="Cluster area convex hull"src="//codepen.io/azuremaps/embed/QoXqWJ/?height=500&theme-id=0&default-tab=js,result"frameborder="no"allowtransparency="true"allowfullscreen="true">
115
+
<iframeheight="500"style="width: 100%;"scrolling="no"title="Cluster area convex hull"src="//codepen.io/azuremaps/embed/QoXqWJ/?height=500&theme-id=0&default-tab=js,result&editable=true"frameborder="no"allowtransparency="true"allowfullscreen="true">
116
116
See the Pen <a href='https://codepen.io/azuremaps/pen/QoXqWJ/'>Cluster area convex hull</a> by Azure Maps
117
117
(<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
118
118
</iframe>
@@ -123,7 +123,7 @@ Often clusters are represented using a symbol with the number of points that are
123
123
124
124
The following sample uses an aggregate expression. The code calculates a count based on the entity type property of each data point in a cluster. When a user clicks on a cluster, a popup shows with additional information about the cluster.
Copy file name to clipboardExpand all lines: articles/azure-maps/data-driven-style-expressions-web-sdk.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -832,7 +832,7 @@ A `zoom` expression is used to retrieve the current zoom level of the map at ren
832
832
833
833
**Example**
834
834
835
-
By default, the radii of data points rendered in the heat map layer have a fixed pixel radius for all zoom levels. As the map is zoomed, the data aggregates together and the heat map layer looks different. A `zoom` expression can be used to scale the radius for each zoom level such that each data point covers the same physical area of the map. It will make the heat map layer look more static and consistent. Each zoom level of the map has twice as many pixels vertically and horizontally as the previous zoom level. Scaling the radius, such that it doubles with each zoom level, will create a heat map that looks consistent on all zoom levels. It can be accomplished using the `zoom` expression with a `base 2 exponential interpolation` expressionas shown below.
835
+
By default, the radii of data points rendered in the heat map layer have a fixed pixel radius for all zoom levels. As the map is zoomed, the data aggregates together and the heat map layer looks different. A `zoom` expression can be used to scale the radius for each zoom level such that each data point covers the same physical area of the map. It will make the heat map layer look more static and consistent. Each zoom level of the map has twice as many pixels vertically and horizontally as the previous zoom level. Scaling the radius, such that it doubles with each zoom level, will create a heat map that looks consistent on all zoom levels. It can be accomplished using the `zoom` expression with a `base 2 exponential interpolation` expression, with the pixel radius set for the minimum zoom level and a scaled radius for the maximum zoom level calculated as `2 * Math.pow(2, minZoom - maxZoom)` as shown below.
836
836
837
837
```javascript
838
838
var layer =newatlas.layer.HeatMapLayer(datasource, null, {
@@ -844,8 +844,8 @@ var layer = new atlas.layer.HeatMapLayer(datasource, null, {
844
844
//For zoom level 1 set the radius to 2 pixels.
845
845
10, 2,
846
846
847
-
//Between zoom level 1 and 19, exponentially scale the radius from 2 pixels to 10,000 pixels.
848
-
19, 10000
847
+
//Between zoom level 1 and 19, exponentially scale the radius from 2 pixels to 2 * Math.pow(2, 19 - 1) pixels (524,288 pixels).
See the Pen <a href='https://codepen.io/azuremaps/pen/dyPMRWo'>Drawing tools events</a> by Azure Maps
31
31
(<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
32
32
</iframe>
@@ -56,7 +56,7 @@ This code searches for points of interests inside the area of a shape after the
56
56
57
57
<br/>
58
58
59
-
<iframeheight="500"style="width: 100%;"scrolling="no"title="Draw and search in polygon area"src="https://codepen.io/azuremaps/embed/eYmZGNv?height=500&theme-id=default&default-tab=js,result"frameborder="no"allowtransparency="true"allowfullscreen="true">
59
+
<iframeheight="500"style="width: 100%;"scrolling="no"title="Draw and search in polygon area"src="https://codepen.io/azuremaps/embed/eYmZGNv?height=500&theme-id=default&default-tab=js,result&editable=true"frameborder="no"allowtransparency="true"allowfullscreen="true">
60
60
See the Pen <a href='https://codepen.io/azuremaps/pen/eYmZGNv'>Draw and search in polygon area</a> by Azure Maps
61
61
(<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
62
62
</iframe>
@@ -69,7 +69,7 @@ The code below shows how the drawing events can be used to create a measuring to
Copy file name to clipboardExpand all lines: articles/azure-maps/how-to-use-spatial-io-module.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,13 @@ The Azure Maps Web SDK provides the **Spatial IO module**, which integrates spat
23
23
24
24
In this guide, we'll learn how to integrate and use the Spatial IO module in a web application.
25
25
26
+
This video provides an overview of Spatial IO module in the Azure Maps Web SDK.
27
+
28
+
<br/>
29
+
30
+
<iframesrc="https://channel9.msdn.com/Shows/Internet-of-Things-Show/Easily-integrate-spatial-data-into-the-Azure-Maps/player"width="960"height="540"allowFullScreenframeBorder="0"title="Easily integrate spatial data into the Azure Maps - Microsoft Channel 9 Video"></iframe>
31
+
32
+
26
33
> [!WARNING]
27
34
> Only use data and services that are from a source you trust, especially if referencing it from another domain. The spatial IO module does take steps to minimize risk, however the safest approach is too not allow any danagerous data into your application to begin with.
Copy file name to clipboardExpand all lines: articles/azure-maps/map-add-heat-map-layer.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,11 +93,11 @@ By default, the radii of data points rendered in the heat map layer have a fixed
93
93
94
94
Use a `zoom` expression to scale the radius for each zoom level, such that each data point covers the same physical area of the map. This expression makes the heat map layer look more static and consistent. Each zoom level of the map has twice as many pixels vertically and horizontally as the previous zoom level.
95
95
96
-
Scaling the radius so that it doubles with each zoom level creates a heat map that looks consistent on all zoom levels. To apply this scaling, use `zoom` with a base 2 `exponential interpolation` expression, as shown in the following sample. Zoom the map to see how the heat map scales with the zoom level.
96
+
Scaling the radius so that it doubles with each zoom level creates a heat map that looks consistent on all zoom levels. To apply this scaling, use `zoom` with a base 2 `exponential interpolation` expression, with the pixel radius set for the minimum zoom level and a scaled radius for the maximum zoom level calculated as `2 * Math.pow(2, minZoom - maxZoom)`as shown in the following sample. Zoom the map to see how the heat map scales with the zoom level.
Copy file name to clipboardExpand all lines: articles/azure-maps/map-add-line-layer.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ This sample shows how to add arrow icons along a line on the map. When using a s
50
50
51
51
<br/>
52
52
53
-
<iframeheight="500"style="width: 100%;"scrolling="no"title="Show arrow along line"src="//codepen.io/azuremaps/embed/drBJwX/?height=500&theme-id=0&default-tab=js,result"frameborder="no"allowtransparency="true"allowfullscreen="true">
53
+
<iframeheight="500"style="width: 100%;"scrolling="no"title="Show arrow along line"src="//codepen.io/azuremaps/embed/drBJwX/?height=500&theme-id=0&default-tab=js,result&editable=true"frameborder="no"allowtransparency="true"allowfullscreen="true">
54
54
See the Pen <a href='https://codepen.io/azuremaps/pen/drBJwX/'>Show arrow along line</a> by Azure Maps
55
55
(<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
56
56
</iframe>
@@ -66,7 +66,7 @@ You may apply a single stroke color to a line. You can also fill a line with a g
66
66
67
67
<br/>
68
68
69
-
<iframeheight="500"style="width: 100%;"scrolling="no"title="Line with Stroke Gradient"src="//codepen.io/azuremaps/embed/wZwWJZ/?height=500&theme-id=0&default-tab=js,result"frameborder="no"allowtransparency="true"allowfullscreen="true">
69
+
<iframeheight="500"style="width: 100%;"scrolling="no"title="Line with Stroke Gradient"src="//codepen.io/azuremaps/embed/wZwWJZ/?height=500&theme-id=0&default-tab=js,result&editable=true"frameborder="no"allowtransparency="true"allowfullscreen="true">
70
70
See the Pen <a href='https://codepen.io/azuremaps/pen/wZwWJZ/'>Line with Stroke Gradient</a> by Azure Maps
71
71
(<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
0 commit comments