azure-maps-control 2.1.5 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atlas-core.js +233 -140
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas.css +126 -0
- package/dist/atlas.js +233 -140
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +1 -1
- package/package.json +1 -1
- package/typings/index.d.ts +43 -0
package/package.json
CHANGED
package/typings/index.d.ts
CHANGED
|
@@ -1536,6 +1536,16 @@ declare namespace atlas {
|
|
|
1536
1536
|
* @returns An array of position objects that form a regular polygon.
|
|
1537
1537
|
*/
|
|
1538
1538
|
export function getRegularPolygonPath(origin: atlas.data.Position | atlas.data.Point, radius: number, numberOfPositions: number, units?: string | DistanceUnits, offset?: number): atlas.data.Position[];
|
|
1539
|
+
/**
|
|
1540
|
+
* Calculates an array of position objects that are an equal distance away from a central point to create a regular polygon broken by antimeridian into multiple sub-paths.
|
|
1541
|
+
* @param origin Center of the regular polygon.
|
|
1542
|
+
* @param radius Radius of the regular polygon.
|
|
1543
|
+
* @param numberOfPositions Number of positions the polygon should have.
|
|
1544
|
+
* @param units Unit of distance measurement. Default is meters.
|
|
1545
|
+
* @param offset An offset to rotate the polygon. When 0 the first position will align with North.
|
|
1546
|
+
* @returns An array of paths that form a regular polygon. Comparing to getRegularPolygonPath, sub-paths will always contain longitude in -180 to 180 range
|
|
1547
|
+
*/
|
|
1548
|
+
export function getRegularPolygonPaths(origin: Position | atlas.data.Point, radius: number, numberOfPositions: number, units?: string | DistanceUnits, offset?: number): Position[][]
|
|
1539
1549
|
/**
|
|
1540
1550
|
* Calculates a position object that is a fractional distance between two position objects.
|
|
1541
1551
|
* @param origin First position to calculate mid-point between.
|
|
@@ -1811,6 +1821,22 @@ declare namespace atlas {
|
|
|
1811
1821
|
* @returns A new array of the simplified set of points.
|
|
1812
1822
|
*/
|
|
1813
1823
|
export function simplify(points: (Position | Pixel)[], tolerance: number): (Position | Pixel)[];
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* Denormalizes path on antimeridian, this makes lines with coordinates on the opposite side of the antimeridian to always cross it. Note that the path crossing antimeridian will contain longitude outside of -180 to 180 range.
|
|
1827
|
+
* See getPathSplitByAntimeridian when this is not desired.
|
|
1828
|
+
* @param path Array of position objects or linestring to denormalize
|
|
1829
|
+
* @returns A denormalized array of position objects, path crossing antimeridian will contain longitude outside of -180 to 180 range.
|
|
1830
|
+
*/
|
|
1831
|
+
export function getPathDenormalizedAtAntimerian(path: atlas.data.LineString | Position[]): Position[];
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* Split path on antimeridian into multiple paths.
|
|
1835
|
+
* See getPathDenormalizedAtAntimerian when this is not desired.
|
|
1836
|
+
* @param path Array of position objects or linestring to split
|
|
1837
|
+
* @returns A path split into multiple paths by antimeridian.
|
|
1838
|
+
*/
|
|
1839
|
+
export function getPathSplitByAntimeridian(path: atlas.data.LineString | Position[]): Position[][];
|
|
1814
1840
|
}
|
|
1815
1841
|
|
|
1816
1842
|
/**
|
|
@@ -4361,6 +4387,23 @@ declare namespace atlas {
|
|
|
4361
4387
|
* @default true
|
|
4362
4388
|
*/
|
|
4363
4389
|
enableAccessibility?: boolean;
|
|
4390
|
+
/**
|
|
4391
|
+
* Controls the duration of the fade-in/fade-out animation for label collisions, in milliseconds.
|
|
4392
|
+
* This setting affects all symbol layers.
|
|
4393
|
+
* This setting does not affect the duration of runtime styling transitions or raster tile cross-fading.
|
|
4394
|
+
* @default 300
|
|
4395
|
+
*/
|
|
4396
|
+
fadeDuration?: number;
|
|
4397
|
+
/**
|
|
4398
|
+
* Defines a CSS font-family for locally overriding generation of glyphs in the
|
|
4399
|
+
* 'CJK Unified Ideographs', 'Hiragana', 'Katakana' and 'Hangul Syllables' ranges.
|
|
4400
|
+
* In these ranges, font settings from the map's style will be ignored,
|
|
4401
|
+
* except for font-weight keywords (light/regular/medium/bold). Set to false,
|
|
4402
|
+
* to enable font settings from the map's style for these glyph ranges.
|
|
4403
|
+
* The purpose of this option is to avoid bandwidth-intensive glyph server requests.
|
|
4404
|
+
* @default 'sans-serif'
|
|
4405
|
+
*/
|
|
4406
|
+
localIdeographFontFamily?: string;
|
|
4364
4407
|
/**
|
|
4365
4408
|
* Maximum number of images (raster tiles, sprites, icons) to load in parallel,
|
|
4366
4409
|
* which affects performance in raster-heavy maps. 16 by default.
|