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: docs/README.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -113,8 +113,8 @@ This control only uses a `non-fixed` position when being added to the map. If a
113
113
| Name | Return type | Description |
114
114
|------|-------------|-------------|
115
115
| `error` | `string` | Event fired when an error occurs. |
116
-
| `showrange` | `atlas.data.Polygon|atlas.data.MultiPolygon` | Event fired when a route range is calculated and the showArea option is set to true. |
117
-
| `rangecalculated` | `atlas.data.Polygon|atlas.data.MultiPolygon` | Event fired when a route range has been calculated. |
116
+
| `showrange` | `atlas.data.Polygon`\|`atlas.data.MultiPolygon` | Event fired when a route range is calculated and the showArea option is set to true. |
117
+
| `rangecalculated` | `atlas.data.Polygon`\|`atlas.data.MultiPolygon` | Event fired when a route range has been calculated. |
118
118
119
119
120
120
**Usage**
@@ -187,7 +187,7 @@ The following static functions have been added to the `atlas.math` namespace.
187
187
188
188
| Name | Return type | Description |
189
189
|------|-------------|-------------|
190
-
| `convertWeight(weight: number, fromUnits: string | WeightUnits, toUnits: string | WeightUnits, decimals?: number)` | `number` | Converts a weight value from one unit to another. Supported units: kilograms, pounds, metricTon, longTon, shortTon. |
191
-
| `pointsWithinPolygon(points:atlas.data.Feature<atlas.data.Point, any>[], searchArea:atlas.data.Polygon|atlas.data.MultiPolygon|atlas.data.Feature<atlas.data.Geometry, any>|atlas.Shape)` | `atlas.data.Feature<atlas.data.Point, any>[]` | Gets all point features that are within a polygon. |
192
-
| `shapePointsWithinPolygon(shapes:atlas.Shape[] |atlas.source.DataSource, searchArea:atlas.data.Polygon|atlas.data.MultiPolygon|atlas.data.Feature<atlas.data.Geometry, any>|atlas.Shape)` | `atlas.Shape[]` | Gets all shapes that have point features that are within a polygon. |
193
-
190
+
| `convertWeight(weight: number, fromUnits: string \| WeightUnits, toUnits: string \| WeightUnits, decimals?: number)` | `number` | Converts a weight value from one unit to another. Supported units: kilograms, pounds, metricTon, longTon, shortTon. |
191
+
| `pointsWithinPolygon(points:atlas.data.Feature<atlas.data.Point, any>[], searchArea:atlas.data.Polygon\|atlas.data.MultiPolygon\|atlas.data.Feature<atlas.data.Geometry, any>\|atlas.Shape)` | `atlas.data.Feature<atlas.data.Point, any>[]` | Gets all point features that are within a polygon. |
192
+
| `shapePointsWithinPolygon(shapes:atlas.Shape[] \|atlas.source.DataSource, searchArea:atlas.data.Polygon\|atlas.data.MultiPolygon\|atlas.data.Feature<atlas.data.Geometry, any>\|atlas.Shape)` | `atlas.Shape[]` | Gets all shapes that have point features that are within a polygon. |
0 commit comments