@deck.gl/carto 9.0.0-alpha.5 → 9.0.0-alpha.7

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.
Files changed (137) hide show
  1. package/dist/cartoRasterTile-worker.js +4 -14
  2. package/dist/cartoSpatialTile-worker.js +4 -14
  3. package/dist/cartoVectorTile-worker.js +4 -14
  4. package/dist/dist.dev.js +57 -55
  5. package/dist/es5/api/endpoints.js +41 -20
  6. package/dist/es5/api/endpoints.js.map +1 -1
  7. package/dist/es5/api/fetch-map.js +16 -18
  8. package/dist/es5/api/fetch-map.js.map +1 -1
  9. package/dist/es5/api/layer-map.js +1 -1
  10. package/dist/es5/api/layer-map.js.map +1 -1
  11. package/dist/es5/api/query.js +10 -7
  12. package/dist/es5/api/query.js.map +1 -1
  13. package/dist/es5/index.js +0 -7
  14. package/dist/es5/index.js.map +1 -1
  15. package/dist/es5/layers/schema/carto-raster-tile-loader.js +1 -1
  16. package/dist/es5/layers/schema/carto-spatial-tile-loader.js +1 -1
  17. package/dist/es5/layers/schema/carto-vector-tile-loader.js +1 -1
  18. package/dist/es5/layers/utils.js +1 -1
  19. package/dist/es5/layers/utils.js.map +1 -1
  20. package/dist/es5/sources/base-source.js.map +1 -1
  21. package/dist/es5/sources/boundary-query-source.js +4 -4
  22. package/dist/es5/sources/boundary-query-source.js.map +1 -1
  23. package/dist/es5/sources/boundary-table-source.js +4 -4
  24. package/dist/es5/sources/boundary-table-source.js.map +1 -1
  25. package/dist/es5/sources/index.js +0 -8
  26. package/dist/es5/sources/index.js.map +1 -1
  27. package/dist/esm/api/endpoints.js +30 -17
  28. package/dist/esm/api/endpoints.js.map +1 -1
  29. package/dist/esm/api/fetch-map.js +12 -14
  30. package/dist/esm/api/fetch-map.js.map +1 -1
  31. package/dist/esm/api/layer-map.js +1 -1
  32. package/dist/esm/api/layer-map.js.map +1 -1
  33. package/dist/esm/api/query.js +6 -4
  34. package/dist/esm/api/query.js.map +1 -1
  35. package/dist/esm/index.js +2 -3
  36. package/dist/esm/index.js.map +1 -1
  37. package/dist/esm/layers/schema/carto-raster-tile-loader.js +1 -1
  38. package/dist/esm/layers/schema/carto-spatial-tile-loader.js +1 -1
  39. package/dist/esm/layers/schema/carto-vector-tile-loader.js +1 -1
  40. package/dist/esm/layers/utils.js +1 -1
  41. package/dist/esm/layers/utils.js.map +1 -1
  42. package/dist/esm/sources/base-source.js.map +1 -1
  43. package/dist/esm/sources/boundary-query-source.js +4 -4
  44. package/dist/esm/sources/boundary-query-source.js.map +1 -1
  45. package/dist/esm/sources/boundary-table-source.js +4 -4
  46. package/dist/esm/sources/boundary-table-source.js.map +1 -1
  47. package/dist/esm/sources/index.js +0 -1
  48. package/dist/esm/sources/index.js.map +1 -1
  49. package/dist.min.js +40 -40
  50. package/package.json +10 -10
  51. package/src/api/endpoints.ts +48 -17
  52. package/src/api/fetch-map.ts +13 -18
  53. package/src/api/layer-map.ts +3 -1
  54. package/src/api/query.ts +8 -4
  55. package/src/index.ts +0 -4
  56. package/src/layers/utils.ts +1 -1
  57. package/src/sources/base-source.ts +0 -1
  58. package/src/sources/boundary-query-source.ts +7 -7
  59. package/src/sources/boundary-table-source.ts +7 -7
  60. package/src/sources/index.ts +0 -3
  61. package/src/sources/types.ts +87 -3
  62. package/typed/api/endpoints.d.ts +17 -6
  63. package/typed/api/endpoints.d.ts.map +1 -1
  64. package/typed/api/fetch-map.d.ts +2 -3
  65. package/typed/api/fetch-map.d.ts.map +1 -1
  66. package/typed/api/layer-map.d.ts +1 -1
  67. package/typed/api/layer-map.d.ts.map +1 -1
  68. package/typed/api/query.d.ts +1 -1
  69. package/typed/api/query.d.ts.map +1 -1
  70. package/typed/api/types.d.ts +19 -19
  71. package/typed/api/types.d.ts.map +1 -1
  72. package/typed/index.d.ts +3 -4
  73. package/typed/index.d.ts.map +1 -1
  74. package/typed/layers/h3-tile-layer.d.ts +2 -2
  75. package/typed/layers/h3-tile-layer.d.ts.map +1 -1
  76. package/typed/layers/h3-tileset-2d.d.ts +1 -1
  77. package/typed/layers/h3-tileset-2d.d.ts.map +1 -1
  78. package/typed/layers/point-label-layer.d.ts +2 -2
  79. package/typed/layers/point-label-layer.d.ts.map +1 -1
  80. package/typed/layers/quadbin-layer.d.ts +2 -2
  81. package/typed/layers/quadbin-layer.d.ts.map +1 -1
  82. package/typed/layers/quadbin-tile-layer.d.ts +2 -2
  83. package/typed/layers/quadbin-tile-layer.d.ts.map +1 -1
  84. package/typed/layers/quadbin-tileset-2d.d.ts +1 -1
  85. package/typed/layers/quadbin-tileset-2d.d.ts.map +1 -1
  86. package/typed/layers/raster-layer.d.ts +2 -2
  87. package/typed/layers/raster-layer.d.ts.map +1 -1
  88. package/typed/layers/raster-tile-layer.d.ts +2 -2
  89. package/typed/layers/raster-tile-layer.d.ts.map +1 -1
  90. package/typed/layers/schema/carto-raster-tile-loader.d.ts +1 -1
  91. package/typed/layers/schema/carto-raster-tile-loader.d.ts.map +1 -1
  92. package/typed/layers/schema/spatialjson-utils.d.ts +8 -8
  93. package/typed/layers/schema/spatialjson-utils.d.ts.map +1 -1
  94. package/typed/layers/spatial-index-tile-layer.d.ts +2 -2
  95. package/typed/layers/spatial-index-tile-layer.d.ts.map +1 -1
  96. package/typed/layers/vector-tile-layer.d.ts +3 -3
  97. package/typed/layers/vector-tile-layer.d.ts.map +1 -1
  98. package/typed/sources/base-source.d.ts.map +1 -1
  99. package/typed/sources/boundary-query-source.d.ts +3 -3
  100. package/typed/sources/boundary-query-source.d.ts.map +1 -1
  101. package/typed/sources/boundary-table-source.d.ts +3 -3
  102. package/typed/sources/boundary-table-source.d.ts.map +1 -1
  103. package/typed/sources/h3-query-source.d.ts +1 -1
  104. package/typed/sources/h3-query-source.d.ts.map +1 -1
  105. package/typed/sources/h3-table-source.d.ts +1 -1
  106. package/typed/sources/h3-table-source.d.ts.map +1 -1
  107. package/typed/sources/h3-tileset-source.d.ts +1 -1
  108. package/typed/sources/h3-tileset-source.d.ts.map +1 -1
  109. package/typed/sources/index.d.ts +0 -2
  110. package/typed/sources/index.d.ts.map +1 -1
  111. package/typed/sources/quadbin-query-source.d.ts +1 -1
  112. package/typed/sources/quadbin-query-source.d.ts.map +1 -1
  113. package/typed/sources/quadbin-table-source.d.ts +1 -1
  114. package/typed/sources/quadbin-table-source.d.ts.map +1 -1
  115. package/typed/sources/quadbin-tileset-source.d.ts +1 -1
  116. package/typed/sources/quadbin-tileset-source.d.ts.map +1 -1
  117. package/typed/sources/raster-source.d.ts +1 -1
  118. package/typed/sources/raster-source.d.ts.map +1 -1
  119. package/typed/sources/types.d.ts +91 -16
  120. package/typed/sources/types.d.ts.map +1 -1
  121. package/typed/sources/vector-query-source.d.ts +1 -1
  122. package/typed/sources/vector-query-source.d.ts.map +1 -1
  123. package/typed/sources/vector-table-source.d.ts +1 -1
  124. package/typed/sources/vector-table-source.d.ts.map +1 -1
  125. package/typed/sources/vector-tileset-source.d.ts +1 -1
  126. package/typed/sources/vector-tileset-source.d.ts.map +1 -1
  127. package/typed/style/palette.d.ts +1 -1
  128. package/typed/style/palette.d.ts.map +1 -1
  129. package/typed/style/utils.d.ts +1 -1
  130. package/typed/style/utils.d.ts.map +1 -1
  131. package/dist/es5/sources/boundary-tileset-source.js +0 -43
  132. package/dist/es5/sources/boundary-tileset-source.js.map +0 -1
  133. package/dist/esm/sources/boundary-tileset-source.js +0 -11
  134. package/dist/esm/sources/boundary-tileset-source.js.map +0 -1
  135. package/src/sources/boundary-tileset-source.ts +0 -14
  136. package/typed/sources/boundary-tileset-source.d.ts +0 -6
  137. package/typed/sources/boundary-tileset-source.d.ts.map +0 -1
@@ -1,40 +1,115 @@
1
1
  import type { Feature } from 'geojson';
2
2
  import type { Format, MapInstantiation, QueryParameters } from '../api/types';
3
- export declare type SourceRequiredOptions = {
3
+ export type SourceRequiredOptions = {
4
+ /** Carto platform access token. */
4
5
  accessToken: string;
6
+ /** Data warehouse connection name in Carto platform. */
5
7
  connectionName: string;
6
8
  };
7
- export declare type SourceOptionalOptions = {
9
+ export type SourceOptionalOptions = {
10
+ /**
11
+ * Base URL of the CARTO Maps API.
12
+ *
13
+ * Example for account located in EU-west region: `https://gcp-eu-west1.api.carto.com`
14
+ *
15
+ * @default https://gcp-us-east1.api.carto.com
16
+ */
8
17
  apiBaseUrl: string;
18
+ /**
19
+ * Custom HTTP headers added to map instantiation and data requests.
20
+ */
21
+ headers: Record<string, string>;
22
+ /**
23
+ * Cache buster value returned by map instantiation.
24
+ *
25
+ * Carto source saves `cache` value of map instantiation response in `cache.value`, so it can be used to
26
+ * check if underlying map data has changed between distinct source requests.
27
+ */
9
28
  cache?: {
10
29
  value?: number;
11
30
  };
12
31
  clientId: string;
13
32
  /** @deprecated use `query` instead **/
14
33
  format: Format;
15
- headers: Record<string, string>;
16
- mapsUrl?: string;
17
34
  };
18
- export declare type SourceOptions = SourceRequiredOptions & Partial<SourceOptionalOptions>;
19
- export declare type AggregationOptions = {
35
+ export type SourceOptions = SourceRequiredOptions & Partial<SourceOptionalOptions>;
36
+ export type AggregationOptions = {
37
+ /**
38
+ * Defines the aggregation expressions that will be calculated from the resulting columns on each grid cell.
39
+ *
40
+ * Example:
41
+ *
42
+ * sum(pop) as total_population, avg(rev) as average_revenue
43
+ */
20
44
  aggregationExp: string;
45
+ /**
46
+ * Defines the tile aggregation resolution.
47
+ *
48
+ * @default 6 for quadbin and 4 for h3 sources
49
+ */
21
50
  aggregationResLevel?: number;
22
51
  };
23
- export declare type QuerySourceOptions = {
52
+ export type QuerySourceOptions = {
53
+ /**
54
+ * The column name and the type of geospatial support.
55
+ *
56
+ * If not present, defaults to `'geom'` for generic queries, `'quadbin'` for Quadbin sources and `'h3'` for H3 sources.
57
+ */
24
58
  spatialDataColumn?: string;
59
+ /** SQL query. */
25
60
  sqlQuery: string;
61
+ /**
62
+ * Values for named or positional paramteres in the query.
63
+ *
64
+ * The way query parameters are determined by data warehouse.
65
+ *
66
+ * * BigQuery has named query parameters, specified with a dictionary, and referenced by key (`@key`)
67
+ *
68
+ * ```
69
+ * sqlQuery: "SELECT * FROM carto-demo-data.demo_tables.retail_stores WHERE storetype = ⁣@type AND revenue > ⁣@minRevenue"
70
+ * queryParameters: { type: 'Supermarket', minRevenue: 1000000 }
71
+ * ```
72
+ * * Snowflake supports positional parameters, in the form `:1`, `:2`, etc.
73
+ *
74
+ * ```
75
+ * sqlQuery: "SELECT * FROM demo_db.public.import_retail_stores WHERE storetype = :2 AND revenue > :1
76
+ * queryParameters: [100000, "Supermarket"]
77
+ * ```
78
+ * * Postgres and Redhisft supports positional parameters, but in the form `$1`, `$2`, etc.
79
+ *
80
+ * ```
81
+ * sqlQuery: "SELECT * FROM carto_demo_data.demo_tables.retail_stores WHERE storetype = $2 AND revenue > $1
82
+ * queryParameters: [100000, "Supermarket"]
83
+ * ```
84
+ */
26
85
  queryParameters?: QueryParameters;
27
86
  };
28
- export declare type TableSourceOptions = {
87
+ export type TableSourceOptions = {
88
+ /**
89
+ * Fully qualified name of table.
90
+ */
91
+ tableName: string;
92
+ /**
93
+ * Columns to retrieve from the table.
94
+ *
95
+ * If not present, all columns are returned.
96
+ */
29
97
  columns?: string[];
98
+ /**
99
+ * The column name and the type of geospatial support.
100
+ *
101
+ * If not present, defaults to `'geom'` for generic tables, `'quadbin'` for Quadbin sources and `'h3'` for H3 sources.
102
+ */
30
103
  spatialDataColumn?: string;
31
- tableName: string;
32
104
  };
33
- export declare type TilesetSourceOptions = {
105
+ export type TilesetSourceOptions = {
106
+ /**
107
+ * Fully qualified name of tileset.
108
+ */
34
109
  tableName: string;
35
110
  };
36
- export declare type SpatialDataType = 'geo' | 'h3' | 'quadbin';
37
- export declare type TilejsonMapInstantiation = MapInstantiation & {
111
+ export type SpatialDataType = 'geo' | 'h3' | 'quadbin';
112
+ export type TilejsonMapInstantiation = MapInstantiation & {
38
113
  tilejson: {
39
114
  url: string[];
40
115
  };
@@ -77,15 +152,15 @@ export interface VectorLayer {
77
152
  maxzoom: number;
78
153
  fields: Record<string, string>;
79
154
  }
80
- export declare type TilejsonResult = Tilejson & {
155
+ export type TilejsonResult = Tilejson & {
81
156
  accessToken: string;
82
157
  };
83
- export declare type GeojsonResult = {
158
+ export type GeojsonResult = {
84
159
  type: 'FeatureCollection';
85
160
  features: Feature[];
86
161
  };
87
- export declare type JsonResult = any[];
88
- export declare type QueryResult = {
162
+ export type JsonResult = any[];
163
+ export type QueryResult = {
89
164
  meta: {
90
165
  cacheHit: boolean;
91
166
  location: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/sources/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAC,MAAM,EAAE,gBAAgB,EAAE,eAAe,EAAC,MAAM,cAAc,CAAC;AAE5E,oBAAY,qBAAqB,GAAG;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,aAAa,GAAG,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAEnF,oBAAY,kBAAkB,GAAG;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,oBAAY,kBAAkB,GAAG;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,eA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A;CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG;IAAC,IAAI,EAAE,mBAAmB,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAA;CAAC,CAAC;AAC7E,MAAM,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC;AAC/B,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE;QAAC,QAAQ,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,mBAAmB,EAAE,MAAM,CAAA;KAAC,CAAC;IACzE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAC5B,MAAM,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC;CACxC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { SourceOptions, QuerySourceOptions, TilejsonResult } from './types';
2
- export declare type VectorQuerySourceOptions = SourceOptions & QuerySourceOptions;
2
+ export type VectorQuerySourceOptions = SourceOptions & QuerySourceOptions;
3
3
  export declare const vectorQuerySource: (options: VectorQuerySourceOptions) => Promise<TilejsonResult>;
4
4
  //# sourceMappingURL=vector-query-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vector-query-source.d.ts","sourceRoot":"","sources":["../../src/sources/vector-query-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,aAAa,EAAE,kBAAkB,EAAmB,cAAc,EAAC,MAAM,SAAS,CAAC;AAEhG,oBAAY,wBAAwB,GAAG,aAAa,GAAG,kBAAkB,CAAC;AAQ1E,eAAO,MAAM,iBAAiB,YACnB,wBAAwB,KAChC,QAAQ,cAAc,CAQxB,CAAC"}
1
+ {"version":3,"file":"vector-query-source.d.ts","sourceRoot":"","sources":["../../src/sources/vector-query-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,aAAa,EAAE,kBAAkB,EAAmB,cAAc,EAAC,MAAM,SAAS,CAAC;AAEhG,MAAM,MAAM,wBAAwB,GAAG,aAAa,GAAG,kBAAkB,CAAC;AAQ1E,eAAO,MAAM,iBAAiB,YACnB,wBAAwB,KAChC,QAAQ,cAAc,CAQxB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { SourceOptions, TableSourceOptions, TilejsonResult } from './types';
2
- export declare type VectorTableSourceOptions = SourceOptions & TableSourceOptions;
2
+ export type VectorTableSourceOptions = SourceOptions & TableSourceOptions;
3
3
  export declare const vectorTableSource: (options: VectorTableSourceOptions) => Promise<TilejsonResult>;
4
4
  //# sourceMappingURL=vector-table-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vector-table-source.d.ts","sourceRoot":"","sources":["../../src/sources/vector-table-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,aAAa,EAAmB,kBAAkB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEhG,oBAAY,wBAAwB,GAAG,aAAa,GAAG,kBAAkB,CAAC;AAQ1E,eAAO,MAAM,iBAAiB,YACnB,wBAAwB,KAChC,QAAQ,cAAc,CAQxB,CAAC"}
1
+ {"version":3,"file":"vector-table-source.d.ts","sourceRoot":"","sources":["../../src/sources/vector-table-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,aAAa,EAAmB,kBAAkB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEhG,MAAM,MAAM,wBAAwB,GAAG,aAAa,GAAG,kBAAkB,CAAC;AAQ1E,eAAO,MAAM,iBAAiB,YACnB,wBAAwB,KAChC,QAAQ,cAAc,CAQxB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { SourceOptions, TilesetSourceOptions, TilejsonResult } from './types';
2
- export declare type VectorTilesetSourceOptions = SourceOptions & TilesetSourceOptions;
2
+ export type VectorTilesetSourceOptions = SourceOptions & TilesetSourceOptions;
3
3
  export declare const vectorTilesetSource: (options: VectorTilesetSourceOptions) => Promise<TilejsonResult>;
4
4
  //# sourceMappingURL=vector-tileset-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vector-tileset-source.d.ts","sourceRoot":"","sources":["../../src/sources/vector-tileset-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,oBAAoB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEjF,oBAAY,0BAA0B,GAAG,aAAa,GAAG,oBAAoB,CAAC;AAG9E,eAAO,MAAM,mBAAmB,YACrB,0BAA0B,KAClC,QAAQ,cAAc,CAKxB,CAAC"}
1
+ {"version":3,"file":"vector-tileset-source.d.ts","sourceRoot":"","sources":["../../src/sources/vector-tileset-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,oBAAoB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEjF,MAAM,MAAM,0BAA0B,GAAG,aAAa,GAAG,oBAAoB,CAAC;AAG9E,eAAO,MAAM,mBAAmB,YACrB,0BAA0B,KAClC,QAAQ,cAAc,CAKxB,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare type Color = [r: number, b: number, g: number, a?: number];
1
+ export type Color = [r: number, b: number, g: number, a?: number];
2
2
  export declare const DEFAULT_PALETTE = "PurpOr";
3
3
  export declare const NULL_COLOR: Color;
4
4
  export declare const OTHERS_COLOR: Color;
@@ -1 +1 @@
1
- {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/style/palette.ts"],"names":[],"mappings":"AAGA,oBAAY,KAAK,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAElE,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,UAAU,EAAE,KAAuB,CAAC;AACjD,eAAO,MAAM,YAAY,EAAE,KAAuB,CAAC;AAOnD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,KAAK,EAAE,CA0B/E;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CA2C3C"}
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/style/palette.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAElE,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,UAAU,EAAE,KAAuB,CAAC;AACjD,eAAO,MAAM,YAAY,EAAE,KAAuB,CAAC;AAOnD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,KAAK,EAAE,CA0B/E;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CA2C3C"}
@@ -1,4 +1,4 @@
1
1
  import { Feature } from 'geojson';
2
- export declare type AttributeSelector<DataT = Feature, OutT = any> = string | ((d: DataT) => OutT);
2
+ export type AttributeSelector<DataT = Feature, OutT = any> = string | ((d: DataT) => OutT);
3
3
  export declare function getAttrValue<DataT = Feature, OutT = any>(attr: string | AttributeSelector<DataT, OutT>, d: DataT): OutT;
4
4
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/style/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAKhC,oBAAY,iBAAiB,CAAC,KAAK,GAAG,OAAO,EAAE,IAAI,GAAG,GAAG,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC;AAE3F,wBAAgB,YAAY,CAAC,KAAK,GAAG,OAAO,EAAE,IAAI,GAAG,GAAG,EACtD,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,EAC7C,CAAC,EAAE,KAAK,GACP,IAAI,CASN"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/style/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAKhC,MAAM,MAAM,iBAAiB,CAAC,KAAK,GAAG,OAAO,EAAE,IAAI,GAAG,GAAG,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC;AAE3F,wBAAgB,YAAY,CAAC,KAAK,GAAG,OAAO,EAAE,IAAI,GAAG,GAAG,EACtD,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,EAC7C,CAAC,EAAE,KAAK,GACP,IAAI,CASN"}
@@ -1,43 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.boundaryTilesetSource = void 0;
9
-
10
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
11
-
12
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
-
14
- var _baseSource = require("./base-source");
15
-
16
- var boundaryTilesetSource = function () {
17
- var _ref = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(options) {
18
- var boundaryId, urlParameters;
19
- return _regenerator.default.wrap(function _callee$(_context) {
20
- while (1) {
21
- switch (_context.prev = _context.next) {
22
- case 0:
23
- boundaryId = options.boundaryId;
24
- urlParameters = {
25
- boundaryId: boundaryId
26
- };
27
- return _context.abrupt("return", (0, _baseSource.baseSource)('boundary', options, urlParameters));
28
-
29
- case 3:
30
- case "end":
31
- return _context.stop();
32
- }
33
- }
34
- }, _callee);
35
- }));
36
-
37
- return function boundaryTilesetSource(_x) {
38
- return _ref.apply(this, arguments);
39
- };
40
- }();
41
-
42
- exports.boundaryTilesetSource = boundaryTilesetSource;
43
- //# sourceMappingURL=boundary-tileset-source.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/sources/boundary-tileset-source.ts"],"names":["boundaryTilesetSource","options","boundaryId","urlParameters"],"mappings":";;;;;;;;;;;;;AAAA;;AAMO,IAAMA,qBAAqB;AAAA,uEAAG,iBACnCC,OADmC;AAAA;AAAA;AAAA;AAAA;AAAA;AAG5BC,YAAAA,UAH4B,GAGdD,OAHc,CAG5BC,UAH4B;AAI7BC,YAAAA,aAJ6B,GAIE;AAACD,cAAAA,UAAU,EAAVA;AAAD,aAJF;AAAA,6CAM5B,4BAA0B,UAA1B,EAAsCD,OAAtC,EAA+CE,aAA/C,CAN4B;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAH;;AAAA,kBAArBH,qBAAqB;AAAA;AAAA;AAAA,GAA3B","sourcesContent":["import {baseSource} from './base-source';\nimport type {SourceOptions, TilejsonResult} from './types';\n\nexport type BoundaryTilesetSourceOptions = SourceOptions & {boundaryId: string};\ntype UrlParameters = {boundaryId: string};\n\nexport const boundaryTilesetSource = async function (\n options: BoundaryTilesetSourceOptions\n): Promise<TilejsonResult> {\n const {boundaryId} = options;\n const urlParameters: UrlParameters = {boundaryId};\n\n return baseSource<UrlParameters>('boundary', options, urlParameters) as Promise<TilejsonResult>;\n};\n"],"file":"boundary-tileset-source.js"}
@@ -1,11 +0,0 @@
1
- import { baseSource } from './base-source';
2
- export const boundaryTilesetSource = async function (options) {
3
- const {
4
- boundaryId
5
- } = options;
6
- const urlParameters = {
7
- boundaryId
8
- };
9
- return baseSource('boundary', options, urlParameters);
10
- };
11
- //# sourceMappingURL=boundary-tileset-source.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/sources/boundary-tileset-source.ts"],"names":["baseSource","boundaryTilesetSource","options","boundaryId","urlParameters"],"mappings":"AAAA,SAAQA,UAAR,QAAyB,eAAzB;AAMA,OAAO,MAAMC,qBAAqB,GAAG,gBACnCC,OADmC,EAEV;AACzB,QAAM;AAACC,IAAAA;AAAD,MAAeD,OAArB;AACA,QAAME,aAA4B,GAAG;AAACD,IAAAA;AAAD,GAArC;AAEA,SAAOH,UAAU,CAAgB,UAAhB,EAA4BE,OAA5B,EAAqCE,aAArC,CAAjB;AACD,CAPM","sourcesContent":["import {baseSource} from './base-source';\nimport type {SourceOptions, TilejsonResult} from './types';\n\nexport type BoundaryTilesetSourceOptions = SourceOptions & {boundaryId: string};\ntype UrlParameters = {boundaryId: string};\n\nexport const boundaryTilesetSource = async function (\n options: BoundaryTilesetSourceOptions\n): Promise<TilejsonResult> {\n const {boundaryId} = options;\n const urlParameters: UrlParameters = {boundaryId};\n\n return baseSource<UrlParameters>('boundary', options, urlParameters) as Promise<TilejsonResult>;\n};\n"],"file":"boundary-tileset-source.js"}
@@ -1,14 +0,0 @@
1
- import {baseSource} from './base-source';
2
- import type {SourceOptions, TilejsonResult} from './types';
3
-
4
- export type BoundaryTilesetSourceOptions = SourceOptions & {boundaryId: string};
5
- type UrlParameters = {boundaryId: string};
6
-
7
- export const boundaryTilesetSource = async function (
8
- options: BoundaryTilesetSourceOptions
9
- ): Promise<TilejsonResult> {
10
- const {boundaryId} = options;
11
- const urlParameters: UrlParameters = {boundaryId};
12
-
13
- return baseSource<UrlParameters>('boundary', options, urlParameters) as Promise<TilejsonResult>;
14
- };
@@ -1,6 +0,0 @@
1
- import type { SourceOptions, TilejsonResult } from './types';
2
- export declare type BoundaryTilesetSourceOptions = SourceOptions & {
3
- boundaryId: string;
4
- };
5
- export declare const boundaryTilesetSource: (options: BoundaryTilesetSourceOptions) => Promise<TilejsonResult>;
6
- //# sourceMappingURL=boundary-tileset-source.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"boundary-tileset-source.d.ts","sourceRoot":"","sources":["../../src/sources/boundary-tileset-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAE3D,oBAAY,4BAA4B,GAAG,aAAa,GAAG;IAAC,UAAU,EAAE,MAAM,CAAA;CAAC,CAAC;AAGhF,eAAO,MAAM,qBAAqB,YACvB,4BAA4B,KACpC,QAAQ,cAAc,CAKxB,CAAC"}