@tileflow/core 0.1.0-alpha.14 → 0.1.0-alpha.17
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/README.md +119 -6
- package/dist/browser.d.ts +74 -0
- package/dist/browser.js +320 -0
- package/dist/index.d.ts +701 -464
- package/dist/index.js +1491 -282
- package/dist/runtime-BMZ_tuba.d.ts +656 -0
- package/package.json +13 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,348 +1,7 @@
|
|
|
1
|
+
import { a as TileflowConfig, b as TileflowProjectConfig, V as ValidationResult, c as TileflowOsmBasemapOptions, d as TileflowOsmBasemapConfig, e as TileflowRoadsModuleOptions, f as TileflowRoadsModuleConfig, g as TileflowLabelsModuleOptions, h as TileflowLabelsModuleConfig, i as TileflowPoiModuleOptions, j as TileflowPoiModuleConfig, k as TileflowStyleOverrideOptions, l as TileflowStyleOverrideModuleConfig } from './runtime-BMZ_tuba.js';
|
|
2
|
+
export { M as MapLibreSprite, m as MapLibreStyle, N as NormalizedTileflowCaptureScene, R as ResolvedTileflowTypography, n as TileflowAdvancedColorConfig, T as TileflowAnalytics, o as TileflowBaseColors, p as TileflowBasemapConfig, q as TileflowBoundaryColorConfig, r as TileflowBuildingColorConfig, s as TileflowBuildingStyleConfig, t as TileflowBuildings, u as TileflowCaptureApplicationTarget, v as TileflowCaptureBoundsCamera, w as TileflowCaptureCamera, x as TileflowCaptureCenterCamera, y as TileflowCaptureMapTarget, z as TileflowCaptureScene, A as TileflowCaptureTarget, B as TileflowCaptureViewport, C as TileflowColor, D as TileflowColorConfig, E as TileflowColors, F as TileflowDensity, G as TileflowFontWeight, H as TileflowFonts, I as TileflowHostedNotoSansWeight, J as TileflowHydroColorConfig, K as TileflowIconSet, L as TileflowIconSetConfig, O as TileflowLabelColorConfig, P as TileflowLabelDetail, Q as TileflowLabelLanguage, S as TileflowLabels, U as TileflowLandcoverColorConfig, W as TileflowLanduseColorConfig, X as TileflowManifest, Y as TileflowManifestLoadOptions, Z as TileflowMapConfig, _ as TileflowMapMarker, $ as TileflowMapMode, a0 as TileflowMapModeOptions, a1 as TileflowModuleConfig, a2 as TileflowPoi, a3 as TileflowPoiCategory, a4 as TileflowPoiClassMapping, a5 as TileflowPoiColorConfig, a6 as TileflowPoiColorMode, a7 as TileflowPoiDensity, a8 as TileflowPoiIcons, a9 as TileflowPoiLabels, aa as TileflowProjectIconSets, ab as TileflowProjectThemes, ac as TileflowRenderer, ad as TileflowRoadClass, ae as TileflowRoadColorConfig, af as TileflowRoadDetail, ag as TileflowRoadExtras, ah as TileflowRoadHierarchy, ai as TileflowRoadLabelDetail, aj as TileflowRoadOutline, ak as TileflowRoadWeight, al as TileflowRoads, am as TileflowRuntimeManifest, an as TileflowRuntimeManifestMap, ao as TileflowRuntimeManifestMapEntry, ap as TileflowRuntimeStyle, aq as TileflowRuntimeStyleOptions, ar as TileflowSourceLayers, as as TileflowStyleLayerOverride, at as TileflowStyleOptions, au as TileflowTerrain, av as TileflowTerrainConfig, aw as TileflowTerrainEncoding, ax as TileflowTerrainMode, ay as TileflowTheme, az as TileflowThemeConfig, aA as TileflowThemeMode, aB as TileflowThemeModulesConfig, aC as TileflowThemeName, aD as TileflowTiles, aE as TileflowTilesetConfig, aF as TileflowTypography, aG as TileflowTypographyDomain, aH as TileflowTypographyStyle, aI as TileflowViewConfig, aJ as ValidationMessage, aK as createManifest, aL as createStyle, aM as createStyleFromProject, aN as createTileflowSessionId, aO as defaultTileflowManifestUrl, aP as defaultTileflowStyleBaseUrl, aQ as getDefaultColors, aR as getDefaultTileflowStyleBaseUrl, aS as getTileflowAnalyticsApiUrl, aT as inferTileflowAnalyticsFromStyleUrl, aU as isTileflowLocalDevHost, aV as loadTileflowManifest, aW as mergeTileflowAnalytics, aX as normalizeTileflowCaptureId, aY as normalizeTileflowCaptureScene, aZ as normalizeTileflowStaticImageSize, a_ as normalizeTileflowUrl, a$ as resolveTileflowAnalyticsRequestUrl, b0 as resolveTileflowManifestMap, b1 as resolveTileflowMapMode, b2 as resolveTileflowRuntimeStyle, b3 as resolveTileflowStaticImageUrl, b4 as resolveTileflowStyleUrl, b5 as shouldLoadTileflowManifest, b6 as startTileflowSession, b7 as tileflowCaptureApplicationTargetSchema, b8 as tileflowCaptureBoundsCameraSchema, b9 as tileflowCaptureCameraSchema, ba as tileflowCaptureCenterCameraSchema, bb as tileflowCaptureIdSchema, bc as tileflowCaptureMapTargetSchema, bd as tileflowCaptureSceneLimits, be as tileflowCaptureSceneNameSchema, bf as tileflowCaptureSceneSchema, bg as tileflowCaptureSceneSchemaVersion, bh as tileflowCaptureTargetSchema, bi as tileflowCaptureViewportSchema, bj as tileflowHostedNotoSansWeights } from './runtime-BMZ_tuba.js';
|
|
1
3
|
import { z } from 'zod';
|
|
2
4
|
|
|
3
|
-
type TileflowDensity = 'clean' | 'balanced' | 'dense';
|
|
4
|
-
type TileflowRoads = 'hidden' | 'soft' | 'standard' | 'detailed';
|
|
5
|
-
type TileflowLabels = 'none' | 'essential' | 'balanced' | 'full';
|
|
6
|
-
type TileflowPoi = 'none' | 'minimal' | 'balanced' | 'full';
|
|
7
|
-
type TileflowLabelDetail = 'none' | 'major' | 'all';
|
|
8
|
-
type TileflowRoadLabelDetail = TileflowRoadDetail;
|
|
9
|
-
type TileflowLabelLanguage = 'auto' | 'local' | 'en' | (string & {});
|
|
10
|
-
type TileflowPoiCategory = 'food' | 'coffee' | 'culture' | 'transit' | 'shopping' | 'lodging' | 'health' | 'education' | 'services' | (string & {});
|
|
11
|
-
type TileflowPoiIcons = boolean | 'essential' | 'full';
|
|
12
|
-
type TileflowPoiLabels = 'none' | 'minimal' | 'balanced' | 'full';
|
|
13
|
-
type TileflowTheme = 'standard' | 'light' | 'dark' | 'minimal' | 'osm-bright-2';
|
|
14
|
-
type TileflowBuildings = 'hidden' | 'flat' | '3d';
|
|
15
|
-
type TileflowTerrainMode = 'none' | 'hillshade' | '3d';
|
|
16
|
-
type TileflowTerrainEncoding = 'mapbox' | 'terrarium';
|
|
17
|
-
type TileflowRenderer = 'auto' | 'osm-bright' | 'generated';
|
|
18
|
-
type TileflowThemeName = string;
|
|
19
|
-
type TileflowThemeMode = 'light' | 'dark';
|
|
20
|
-
type TileflowColor = `#${string}`;
|
|
21
|
-
type TileflowBaseColors = {
|
|
22
|
-
background: TileflowColor;
|
|
23
|
-
land: TileflowColor;
|
|
24
|
-
water: TileflowColor;
|
|
25
|
-
park: TileflowColor;
|
|
26
|
-
building: TileflowColor;
|
|
27
|
-
road: TileflowColor;
|
|
28
|
-
roadMajor: TileflowColor;
|
|
29
|
-
boundary: TileflowColor;
|
|
30
|
-
text: TileflowColor;
|
|
31
|
-
textMuted: TileflowColor;
|
|
32
|
-
textHalo: TileflowColor;
|
|
33
|
-
};
|
|
34
|
-
type LegacyTileflowColorAliases = {
|
|
35
|
-
accent?: TileflowColor;
|
|
36
|
-
canvas?: TileflowColor;
|
|
37
|
-
background?: TileflowColor;
|
|
38
|
-
greenspace?: TileflowColor;
|
|
39
|
-
nature?: TileflowColor;
|
|
40
|
-
park?: TileflowColor;
|
|
41
|
-
roadCasing?: TileflowColor;
|
|
42
|
-
};
|
|
43
|
-
type TileflowRoadColorConfig = {
|
|
44
|
-
bridge?: TileflowColor;
|
|
45
|
-
casing?: TileflowColor;
|
|
46
|
-
ferry?: TileflowColor;
|
|
47
|
-
minor?: TileflowColor;
|
|
48
|
-
motorway?: TileflowColor;
|
|
49
|
-
path?: TileflowColor;
|
|
50
|
-
primary?: TileflowColor;
|
|
51
|
-
rail?: TileflowColor;
|
|
52
|
-
secondary?: TileflowColor;
|
|
53
|
-
trunk?: TileflowColor;
|
|
54
|
-
tunnel?: TileflowColor;
|
|
55
|
-
};
|
|
56
|
-
type TileflowLabelColorConfig = {
|
|
57
|
-
country?: TileflowColor;
|
|
58
|
-
halo?: TileflowColor;
|
|
59
|
-
muted?: TileflowColor;
|
|
60
|
-
neighborhood?: TileflowColor;
|
|
61
|
-
poi?: TileflowColor;
|
|
62
|
-
primary?: TileflowColor;
|
|
63
|
-
road?: TileflowColor;
|
|
64
|
-
settlement?: TileflowColor;
|
|
65
|
-
water?: TileflowColor;
|
|
66
|
-
};
|
|
67
|
-
type TileflowPoiColorConfig = {
|
|
68
|
-
coffee?: TileflowColor;
|
|
69
|
-
culture?: TileflowColor;
|
|
70
|
-
education?: TileflowColor;
|
|
71
|
-
food?: TileflowColor;
|
|
72
|
-
halo?: TileflowColor;
|
|
73
|
-
health?: TileflowColor;
|
|
74
|
-
icon?: TileflowColor;
|
|
75
|
-
label?: TileflowColor;
|
|
76
|
-
lodging?: TileflowColor;
|
|
77
|
-
services?: TileflowColor;
|
|
78
|
-
shopping?: TileflowColor;
|
|
79
|
-
transit?: TileflowColor;
|
|
80
|
-
};
|
|
81
|
-
type TileflowLanduseColorConfig = {
|
|
82
|
-
cemetery?: TileflowColor;
|
|
83
|
-
civic?: TileflowColor;
|
|
84
|
-
commercial?: TileflowColor;
|
|
85
|
-
industrial?: TileflowColor;
|
|
86
|
-
residential?: TileflowColor;
|
|
87
|
-
};
|
|
88
|
-
type TileflowLandcoverColorConfig = {
|
|
89
|
-
grass?: TileflowColor;
|
|
90
|
-
ice?: TileflowColor;
|
|
91
|
-
park?: TileflowColor;
|
|
92
|
-
protected?: TileflowColor;
|
|
93
|
-
sand?: TileflowColor;
|
|
94
|
-
wood?: TileflowColor;
|
|
95
|
-
};
|
|
96
|
-
type TileflowHydroColorConfig = {
|
|
97
|
-
ferry?: TileflowColor;
|
|
98
|
-
label?: TileflowColor;
|
|
99
|
-
water?: TileflowColor;
|
|
100
|
-
waterway?: TileflowColor;
|
|
101
|
-
};
|
|
102
|
-
type TileflowBuildingColorConfig = {
|
|
103
|
-
extrusion?: TileflowColor;
|
|
104
|
-
fill?: TileflowColor;
|
|
105
|
-
outline?: TileflowColor;
|
|
106
|
-
};
|
|
107
|
-
type TileflowBoundaryColorConfig = {
|
|
108
|
-
admin?: TileflowColor;
|
|
109
|
-
disputed?: TileflowColor;
|
|
110
|
-
major?: TileflowColor;
|
|
111
|
-
maritime?: TileflowColor;
|
|
112
|
-
};
|
|
113
|
-
type TileflowAdvancedColorConfig = {
|
|
114
|
-
boundaries?: TileflowBoundaryColorConfig;
|
|
115
|
-
buildings?: TileflowBuildingColorConfig;
|
|
116
|
-
hydro?: TileflowHydroColorConfig;
|
|
117
|
-
labels?: TileflowLabelColorConfig;
|
|
118
|
-
landcover?: TileflowLandcoverColorConfig;
|
|
119
|
-
landuse?: TileflowLanduseColorConfig;
|
|
120
|
-
poi?: TileflowPoiColorConfig;
|
|
121
|
-
roads?: TileflowRoadColorConfig;
|
|
122
|
-
};
|
|
123
|
-
type TileflowThemeModulesConfig = TileflowAdvancedColorConfig;
|
|
124
|
-
type TileflowColorConfig = Partial<TileflowBaseColors> & LegacyTileflowColorAliases & TileflowAdvancedColorConfig;
|
|
125
|
-
type TileflowColors = {
|
|
126
|
-
[K in keyof TileflowBaseColors]: string;
|
|
127
|
-
} & {
|
|
128
|
-
canvas: string;
|
|
129
|
-
greenspace: string;
|
|
130
|
-
nature: string;
|
|
131
|
-
};
|
|
132
|
-
type TileflowFontWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
133
|
-
type TileflowTypography = {
|
|
134
|
-
font?: string;
|
|
135
|
-
fontFamily?: string;
|
|
136
|
-
weight?: TileflowFontWeight;
|
|
137
|
-
};
|
|
138
|
-
type TileflowFonts = {
|
|
139
|
-
body?: string;
|
|
140
|
-
labels?: string;
|
|
141
|
-
};
|
|
142
|
-
type TileflowThemeConfig = {
|
|
143
|
-
colors?: TileflowColorConfig;
|
|
144
|
-
extends?: string;
|
|
145
|
-
fonts?: TileflowFonts;
|
|
146
|
-
layers?: Record<string, TileflowStyleLayerOverride>;
|
|
147
|
-
mode?: TileflowThemeMode;
|
|
148
|
-
modules?: TileflowThemeModulesConfig;
|
|
149
|
-
typography?: TileflowTypography;
|
|
150
|
-
};
|
|
151
|
-
type TileflowSourceLayers = {
|
|
152
|
-
landuse?: string;
|
|
153
|
-
park?: string;
|
|
154
|
-
water?: string;
|
|
155
|
-
waterName?: string;
|
|
156
|
-
waterway?: string;
|
|
157
|
-
road?: string;
|
|
158
|
-
roadName?: string;
|
|
159
|
-
building?: string;
|
|
160
|
-
boundary?: string;
|
|
161
|
-
place?: string;
|
|
162
|
-
poi?: string;
|
|
163
|
-
};
|
|
164
|
-
type TileflowTiles = {
|
|
165
|
-
sourceId?: string;
|
|
166
|
-
tileset?: string;
|
|
167
|
-
url?: string;
|
|
168
|
-
attribution?: string;
|
|
169
|
-
sourceLayers?: TileflowSourceLayers;
|
|
170
|
-
};
|
|
171
|
-
type TileflowTerrainConfig = {
|
|
172
|
-
attribution?: string;
|
|
173
|
-
encoding?: TileflowTerrainEncoding;
|
|
174
|
-
exaggeration?: number;
|
|
175
|
-
mode?: TileflowTerrainMode;
|
|
176
|
-
sourceId?: string;
|
|
177
|
-
tileset?: string;
|
|
178
|
-
url?: string;
|
|
179
|
-
};
|
|
180
|
-
type TileflowTerrain = TileflowTerrainMode | TileflowTerrainConfig;
|
|
181
|
-
type TileflowViewConfig = {
|
|
182
|
-
bearing?: number;
|
|
183
|
-
center?: readonly [number, number];
|
|
184
|
-
zoom?: number;
|
|
185
|
-
};
|
|
186
|
-
type TileflowOsmBasemapConfig = {
|
|
187
|
-
type: 'osm';
|
|
188
|
-
attribution?: string;
|
|
189
|
-
glyphs?: string;
|
|
190
|
-
sourceId?: string;
|
|
191
|
-
sourceLayers?: TileflowSourceLayers;
|
|
192
|
-
sprite?: string;
|
|
193
|
-
tileset?: string;
|
|
194
|
-
url?: string;
|
|
195
|
-
};
|
|
196
|
-
type TileflowBasemapConfig = TileflowOsmBasemapConfig;
|
|
197
|
-
type TileflowOsmBasemapOptions = Omit<TileflowOsmBasemapConfig, 'type'>;
|
|
198
|
-
type TileflowRoadDetail = 'none' | 'highways' | 'major' | 'streets' | 'all';
|
|
199
|
-
type TileflowRoadHierarchy = 'subtle' | 'clear' | 'strong';
|
|
200
|
-
type TileflowRoadWeight = 'thin' | 'regular' | 'bold';
|
|
201
|
-
type TileflowRoadOutline = 'none' | 'subtle' | 'strong';
|
|
202
|
-
type TileflowRoadExtras = {
|
|
203
|
-
ferry?: boolean;
|
|
204
|
-
paths?: boolean;
|
|
205
|
-
rail?: boolean;
|
|
206
|
-
};
|
|
207
|
-
type TileflowRoadsModuleConfig = {
|
|
208
|
-
type: 'roads';
|
|
209
|
-
detail?: TileflowRoadDetail;
|
|
210
|
-
extras?: TileflowRoadExtras;
|
|
211
|
-
hierarchy?: TileflowRoadHierarchy;
|
|
212
|
-
outline?: TileflowRoadOutline;
|
|
213
|
-
weight?: TileflowRoadWeight;
|
|
214
|
-
};
|
|
215
|
-
type TileflowRoadsModuleOptions = Omit<TileflowRoadsModuleConfig, 'type'>;
|
|
216
|
-
type TileflowLabelsModuleConfig = {
|
|
217
|
-
type: 'labels';
|
|
218
|
-
language?: TileflowLabelLanguage;
|
|
219
|
-
places?: TileflowLabelDetail;
|
|
220
|
-
roads?: TileflowRoadLabelDetail;
|
|
221
|
-
water?: TileflowLabelDetail;
|
|
222
|
-
};
|
|
223
|
-
type TileflowLabelsModuleOptions = Omit<TileflowLabelsModuleConfig, 'type'>;
|
|
224
|
-
type TileflowPoiModuleConfig = {
|
|
225
|
-
type: 'poi';
|
|
226
|
-
categories?: readonly TileflowPoiCategory[];
|
|
227
|
-
icons?: TileflowPoiIcons;
|
|
228
|
-
labels?: TileflowPoiLabels;
|
|
229
|
-
minZoom?: number;
|
|
230
|
-
preset?: TileflowPoi;
|
|
231
|
-
};
|
|
232
|
-
type TileflowPoiModuleOptions = Omit<TileflowPoiModuleConfig, 'type'>;
|
|
233
|
-
type TileflowIconSetConfig = {
|
|
234
|
-
extends?: string;
|
|
235
|
-
mapping?: Record<string, string>;
|
|
236
|
-
source?: string;
|
|
237
|
-
sprite?: string;
|
|
238
|
-
};
|
|
239
|
-
type TileflowIconSet = string | TileflowIconSetConfig;
|
|
240
|
-
type TileflowProjectIconSets = Record<string, TileflowIconSet>;
|
|
241
|
-
type MapLibreSprite = string | Array<{
|
|
242
|
-
id: string;
|
|
243
|
-
url: string;
|
|
244
|
-
}>;
|
|
245
|
-
type TileflowStyleLayerOverride = Record<string, unknown> & {
|
|
246
|
-
before?: string;
|
|
247
|
-
filter?: unknown;
|
|
248
|
-
layout?: Record<string, unknown>;
|
|
249
|
-
maxzoom?: number;
|
|
250
|
-
metadata?: Record<string, unknown>;
|
|
251
|
-
minzoom?: number;
|
|
252
|
-
paint?: Record<string, unknown>;
|
|
253
|
-
source?: string;
|
|
254
|
-
'source-layer'?: string;
|
|
255
|
-
type?: string;
|
|
256
|
-
};
|
|
257
|
-
type TileflowStyleOverrideModuleConfig = {
|
|
258
|
-
type: 'styleOverride';
|
|
259
|
-
layers?: Record<string, TileflowStyleLayerOverride>;
|
|
260
|
-
removeLayers?: string[];
|
|
261
|
-
};
|
|
262
|
-
type TileflowStyleOverrideOptions = Omit<TileflowStyleOverrideModuleConfig, 'type'>;
|
|
263
|
-
type TileflowModuleConfig = TileflowLabelsModuleConfig | TileflowPoiModuleConfig | TileflowRoadsModuleConfig | TileflowStyleOverrideModuleConfig;
|
|
264
|
-
type TileflowConfig = {
|
|
265
|
-
basemap?: TileflowBasemapConfig;
|
|
266
|
-
name?: string;
|
|
267
|
-
tileset?: string;
|
|
268
|
-
theme?: TileflowTheme | string | TileflowThemeConfig;
|
|
269
|
-
modules?: readonly TileflowModuleConfig[];
|
|
270
|
-
layers?: Record<string, TileflowStyleLayerOverride>;
|
|
271
|
-
colors?: TileflowColorConfig;
|
|
272
|
-
typography?: TileflowTypography;
|
|
273
|
-
density?: TileflowDensity;
|
|
274
|
-
roads?: TileflowRoads;
|
|
275
|
-
labels?: TileflowLabels;
|
|
276
|
-
poi?: TileflowPoi;
|
|
277
|
-
buildings?: TileflowBuildings;
|
|
278
|
-
terrain?: TileflowTerrain;
|
|
279
|
-
renderer?: TileflowRenderer;
|
|
280
|
-
glyphs?: string;
|
|
281
|
-
icons?: TileflowIconSet;
|
|
282
|
-
sprite?: string;
|
|
283
|
-
tiles?: TileflowTiles;
|
|
284
|
-
view?: TileflowViewConfig;
|
|
285
|
-
/**
|
|
286
|
-
* Domains allowed to load this map in production (e.g. "example.com" or
|
|
287
|
-
* "*.example.com"). When set, tile and session requests from other
|
|
288
|
-
* websites are rejected. Local development (localhost, private network
|
|
289
|
-
* addresses) is always allowed. Leave unset to allow any domain.
|
|
290
|
-
*/
|
|
291
|
-
allowedOrigins?: string[];
|
|
292
|
-
};
|
|
293
|
-
type TileflowMapConfig = TileflowConfig;
|
|
294
|
-
type TileflowTilesetConfig = {
|
|
295
|
-
id?: string;
|
|
296
|
-
name?: string;
|
|
297
|
-
attribution?: string;
|
|
298
|
-
sourceLayers?: TileflowSourceLayers;
|
|
299
|
-
};
|
|
300
|
-
type TileflowProjectThemes = Record<TileflowThemeName, TileflowThemeConfig>;
|
|
301
|
-
type TileflowProjectConfig = {
|
|
302
|
-
icons?: TileflowProjectIconSets;
|
|
303
|
-
themes?: TileflowProjectThemes;
|
|
304
|
-
tilesets?: Record<string, TileflowTilesetConfig>;
|
|
305
|
-
maps: Record<string, TileflowMapConfig>;
|
|
306
|
-
};
|
|
307
|
-
type TileflowStyleOptions = {
|
|
308
|
-
iconSets?: TileflowProjectIconSets;
|
|
309
|
-
themes?: TileflowProjectThemes;
|
|
310
|
-
tileBaseUrl?: string;
|
|
311
|
-
tileset?: string;
|
|
312
|
-
};
|
|
313
|
-
type TileflowManifest = {
|
|
314
|
-
version: 1;
|
|
315
|
-
tileBaseUrl: string;
|
|
316
|
-
styles: Record<string, string>;
|
|
317
|
-
maps: Record<string, string>;
|
|
318
|
-
};
|
|
319
|
-
type MapLibreStyle = {
|
|
320
|
-
version: 8;
|
|
321
|
-
name: string;
|
|
322
|
-
glyphs?: string;
|
|
323
|
-
sprite?: MapLibreSprite;
|
|
324
|
-
sources: Record<string, Record<string, unknown>>;
|
|
325
|
-
layers: Array<Record<string, unknown>>;
|
|
326
|
-
terrain?: Record<string, unknown>;
|
|
327
|
-
metadata?: Record<string, unknown>;
|
|
328
|
-
};
|
|
329
|
-
type ValidationMessage = {
|
|
330
|
-
level: 'error' | 'warning';
|
|
331
|
-
path: string;
|
|
332
|
-
message: string;
|
|
333
|
-
};
|
|
334
|
-
type ValidationResult = {
|
|
335
|
-
valid: boolean;
|
|
336
|
-
messages: ValidationMessage[];
|
|
337
|
-
};
|
|
338
|
-
declare function createStyle(input?: TileflowConfig, options?: TileflowStyleOptions): MapLibreStyle;
|
|
339
|
-
declare function createStyleFromProject<const TProject extends TileflowProjectConfig, const TMapName extends keyof TProject['maps'] & string>(projectConfig: TProject, mapName: TMapName, options?: TileflowStyleOptions): MapLibreStyle;
|
|
340
|
-
declare function createManifest(projectConfig: TileflowProjectConfig, options?: {
|
|
341
|
-
styleBaseUrl?: string;
|
|
342
|
-
tileBaseUrl?: string;
|
|
343
|
-
}): TileflowManifest;
|
|
344
|
-
declare function getDefaultColors(): TileflowColors;
|
|
345
|
-
|
|
346
5
|
declare const tileflowThemeSchema: z.ZodObject<{
|
|
347
6
|
colors: z.ZodOptional<z.ZodObject<{
|
|
348
7
|
accent: z.ZodOptional<z.ZodString>;
|
|
@@ -370,6 +29,10 @@ declare const tileflowThemeSchema: z.ZodObject<{
|
|
|
370
29
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
371
30
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
372
31
|
fill: z.ZodOptional<z.ZodString>;
|
|
32
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
33
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
34
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
35
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
373
36
|
outline: z.ZodOptional<z.ZodString>;
|
|
374
37
|
}, z.core.$strict>>;
|
|
375
38
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -381,12 +44,12 @@ declare const tileflowThemeSchema: z.ZodObject<{
|
|
|
381
44
|
labels: z.ZodOptional<z.ZodObject<{
|
|
382
45
|
water: z.ZodOptional<z.ZodString>;
|
|
383
46
|
road: z.ZodOptional<z.ZodString>;
|
|
47
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
384
48
|
primary: z.ZodOptional<z.ZodString>;
|
|
385
49
|
country: z.ZodOptional<z.ZodString>;
|
|
386
50
|
halo: z.ZodOptional<z.ZodString>;
|
|
387
51
|
muted: z.ZodOptional<z.ZodString>;
|
|
388
52
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
389
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
390
53
|
settlement: z.ZodOptional<z.ZodString>;
|
|
391
54
|
}, z.core.$strict>>;
|
|
392
55
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -463,6 +126,10 @@ declare const tileflowThemeSchema: z.ZodObject<{
|
|
|
463
126
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
464
127
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
465
128
|
fill: z.ZodOptional<z.ZodString>;
|
|
129
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
130
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
131
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
132
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
466
133
|
outline: z.ZodOptional<z.ZodString>;
|
|
467
134
|
}, z.core.$strict>>;
|
|
468
135
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -474,12 +141,12 @@ declare const tileflowThemeSchema: z.ZodObject<{
|
|
|
474
141
|
labels: z.ZodOptional<z.ZodObject<{
|
|
475
142
|
water: z.ZodOptional<z.ZodString>;
|
|
476
143
|
road: z.ZodOptional<z.ZodString>;
|
|
144
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
477
145
|
primary: z.ZodOptional<z.ZodString>;
|
|
478
146
|
country: z.ZodOptional<z.ZodString>;
|
|
479
147
|
halo: z.ZodOptional<z.ZodString>;
|
|
480
148
|
muted: z.ZodOptional<z.ZodString>;
|
|
481
149
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
482
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
483
150
|
settlement: z.ZodOptional<z.ZodString>;
|
|
484
151
|
}, z.core.$strict>>;
|
|
485
152
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -534,6 +201,46 @@ declare const tileflowThemeSchema: z.ZodObject<{
|
|
|
534
201
|
semibold: "semibold";
|
|
535
202
|
bold: "bold";
|
|
536
203
|
}>>;
|
|
204
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
font: z.ZodOptional<z.ZodString>;
|
|
206
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
207
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
208
|
+
regular: "regular";
|
|
209
|
+
medium: "medium";
|
|
210
|
+
semibold: "semibold";
|
|
211
|
+
bold: "bold";
|
|
212
|
+
}>>;
|
|
213
|
+
}, z.core.$strict>>;
|
|
214
|
+
poi: z.ZodOptional<z.ZodObject<{
|
|
215
|
+
font: z.ZodOptional<z.ZodString>;
|
|
216
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
217
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
218
|
+
regular: "regular";
|
|
219
|
+
medium: "medium";
|
|
220
|
+
semibold: "semibold";
|
|
221
|
+
bold: "bold";
|
|
222
|
+
}>>;
|
|
223
|
+
}, z.core.$strict>>;
|
|
224
|
+
roads: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
font: z.ZodOptional<z.ZodString>;
|
|
226
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
227
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
228
|
+
regular: "regular";
|
|
229
|
+
medium: "medium";
|
|
230
|
+
semibold: "semibold";
|
|
231
|
+
bold: "bold";
|
|
232
|
+
}>>;
|
|
233
|
+
}, z.core.$strict>>;
|
|
234
|
+
water: z.ZodOptional<z.ZodObject<{
|
|
235
|
+
font: z.ZodOptional<z.ZodString>;
|
|
236
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
237
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
238
|
+
regular: "regular";
|
|
239
|
+
medium: "medium";
|
|
240
|
+
semibold: "semibold";
|
|
241
|
+
bold: "bold";
|
|
242
|
+
}>>;
|
|
243
|
+
}, z.core.$strict>>;
|
|
537
244
|
}, z.core.$strict>>;
|
|
538
245
|
}, z.core.$strict>;
|
|
539
246
|
declare const tileflowMapSchema: z.ZodObject<{
|
|
@@ -543,6 +250,7 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
543
250
|
glyphs: z.ZodOptional<z.ZodString>;
|
|
544
251
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
545
252
|
sourceLayers: z.ZodOptional<z.ZodObject<{
|
|
253
|
+
landcover: z.ZodOptional<z.ZodString>;
|
|
546
254
|
landuse: z.ZodOptional<z.ZodString>;
|
|
547
255
|
park: z.ZodOptional<z.ZodString>;
|
|
548
256
|
water: z.ZodOptional<z.ZodString>;
|
|
@@ -558,6 +266,7 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
558
266
|
sprite: z.ZodOptional<z.ZodString>;
|
|
559
267
|
tileset: z.ZodOptional<z.ZodString>;
|
|
560
268
|
url: z.ZodOptional<z.ZodURL>;
|
|
269
|
+
version: z.ZodOptional<z.ZodString>;
|
|
561
270
|
}, z.core.$strict>>;
|
|
562
271
|
name: z.ZodOptional<z.ZodString>;
|
|
563
272
|
tileset: z.ZodOptional<z.ZodString>;
|
|
@@ -588,6 +297,10 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
588
297
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
589
298
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
590
299
|
fill: z.ZodOptional<z.ZodString>;
|
|
300
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
301
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
302
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
303
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
591
304
|
outline: z.ZodOptional<z.ZodString>;
|
|
592
305
|
}, z.core.$strict>>;
|
|
593
306
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -599,12 +312,12 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
599
312
|
labels: z.ZodOptional<z.ZodObject<{
|
|
600
313
|
water: z.ZodOptional<z.ZodString>;
|
|
601
314
|
road: z.ZodOptional<z.ZodString>;
|
|
315
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
602
316
|
primary: z.ZodOptional<z.ZodString>;
|
|
603
317
|
country: z.ZodOptional<z.ZodString>;
|
|
604
318
|
halo: z.ZodOptional<z.ZodString>;
|
|
605
319
|
muted: z.ZodOptional<z.ZodString>;
|
|
606
320
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
607
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
608
321
|
settlement: z.ZodOptional<z.ZodString>;
|
|
609
322
|
}, z.core.$strict>>;
|
|
610
323
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -681,6 +394,10 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
681
394
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
682
395
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
683
396
|
fill: z.ZodOptional<z.ZodString>;
|
|
397
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
398
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
399
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
400
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
684
401
|
outline: z.ZodOptional<z.ZodString>;
|
|
685
402
|
}, z.core.$strict>>;
|
|
686
403
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -692,12 +409,12 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
692
409
|
labels: z.ZodOptional<z.ZodObject<{
|
|
693
410
|
water: z.ZodOptional<z.ZodString>;
|
|
694
411
|
road: z.ZodOptional<z.ZodString>;
|
|
412
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
695
413
|
primary: z.ZodOptional<z.ZodString>;
|
|
696
414
|
country: z.ZodOptional<z.ZodString>;
|
|
697
415
|
halo: z.ZodOptional<z.ZodString>;
|
|
698
416
|
muted: z.ZodOptional<z.ZodString>;
|
|
699
417
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
700
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
701
418
|
settlement: z.ZodOptional<z.ZodString>;
|
|
702
419
|
}, z.core.$strict>>;
|
|
703
420
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -752,6 +469,46 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
752
469
|
semibold: "semibold";
|
|
753
470
|
bold: "bold";
|
|
754
471
|
}>>;
|
|
472
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
473
|
+
font: z.ZodOptional<z.ZodString>;
|
|
474
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
475
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
476
|
+
regular: "regular";
|
|
477
|
+
medium: "medium";
|
|
478
|
+
semibold: "semibold";
|
|
479
|
+
bold: "bold";
|
|
480
|
+
}>>;
|
|
481
|
+
}, z.core.$strict>>;
|
|
482
|
+
poi: z.ZodOptional<z.ZodObject<{
|
|
483
|
+
font: z.ZodOptional<z.ZodString>;
|
|
484
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
485
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
486
|
+
regular: "regular";
|
|
487
|
+
medium: "medium";
|
|
488
|
+
semibold: "semibold";
|
|
489
|
+
bold: "bold";
|
|
490
|
+
}>>;
|
|
491
|
+
}, z.core.$strict>>;
|
|
492
|
+
roads: z.ZodOptional<z.ZodObject<{
|
|
493
|
+
font: z.ZodOptional<z.ZodString>;
|
|
494
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
495
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
496
|
+
regular: "regular";
|
|
497
|
+
medium: "medium";
|
|
498
|
+
semibold: "semibold";
|
|
499
|
+
bold: "bold";
|
|
500
|
+
}>>;
|
|
501
|
+
}, z.core.$strict>>;
|
|
502
|
+
water: z.ZodOptional<z.ZodObject<{
|
|
503
|
+
font: z.ZodOptional<z.ZodString>;
|
|
504
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
505
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
506
|
+
regular: "regular";
|
|
507
|
+
medium: "medium";
|
|
508
|
+
semibold: "semibold";
|
|
509
|
+
bold: "bold";
|
|
510
|
+
}>>;
|
|
511
|
+
}, z.core.$strict>>;
|
|
755
512
|
}, z.core.$strict>>;
|
|
756
513
|
}, z.core.$strict>]>>;
|
|
757
514
|
modules: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -762,6 +519,17 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
762
519
|
major: "major";
|
|
763
520
|
all: "all";
|
|
764
521
|
}>>;
|
|
522
|
+
roadClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
523
|
+
minor: "minor";
|
|
524
|
+
motorway: "motorway";
|
|
525
|
+
path: "path";
|
|
526
|
+
primary: "primary";
|
|
527
|
+
secondary: "secondary";
|
|
528
|
+
trunk: "trunk";
|
|
529
|
+
tertiary: "tertiary";
|
|
530
|
+
service: "service";
|
|
531
|
+
track: "track";
|
|
532
|
+
}>>>;
|
|
765
533
|
roads: z.ZodOptional<z.ZodEnum<{
|
|
766
534
|
none: "none";
|
|
767
535
|
major: "major";
|
|
@@ -777,6 +545,16 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
777
545
|
}, z.core.$strict>, z.ZodObject<{
|
|
778
546
|
type: z.ZodLiteral<"poi">;
|
|
779
547
|
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
548
|
+
classMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
549
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
550
|
+
uniform: "uniform";
|
|
551
|
+
category: "category";
|
|
552
|
+
}>>;
|
|
553
|
+
density: z.ZodOptional<z.ZodEnum<{
|
|
554
|
+
balanced: "balanced";
|
|
555
|
+
dense: "dense";
|
|
556
|
+
sparse: "sparse";
|
|
557
|
+
}>>;
|
|
780
558
|
icons: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
781
559
|
essential: "essential";
|
|
782
560
|
full: "full";
|
|
@@ -788,6 +566,11 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
788
566
|
minimal: "minimal";
|
|
789
567
|
}>>;
|
|
790
568
|
minZoom: z.ZodOptional<z.ZodNumber>;
|
|
569
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
570
|
+
coupleIconAndLabel: z.ZodOptional<z.ZodBoolean>;
|
|
571
|
+
iconPadding: z.ZodOptional<z.ZodNumber>;
|
|
572
|
+
textPadding: z.ZodOptional<z.ZodNumber>;
|
|
573
|
+
}, z.core.$strict>>;
|
|
791
574
|
preset: z.ZodOptional<z.ZodEnum<{
|
|
792
575
|
balanced: "balanced";
|
|
793
576
|
none: "none";
|
|
@@ -813,6 +596,7 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
813
596
|
clear: "clear";
|
|
814
597
|
strong: "strong";
|
|
815
598
|
}>>;
|
|
599
|
+
oneWayMarkers: z.ZodOptional<z.ZodBoolean>;
|
|
816
600
|
outline: z.ZodOptional<z.ZodEnum<{
|
|
817
601
|
none: "none";
|
|
818
602
|
subtle: "subtle";
|
|
@@ -823,6 +607,17 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
823
607
|
bold: "bold";
|
|
824
608
|
thin: "thin";
|
|
825
609
|
}>>;
|
|
610
|
+
widthScale: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
611
|
+
minor: "minor";
|
|
612
|
+
motorway: "motorway";
|
|
613
|
+
path: "path";
|
|
614
|
+
primary: "primary";
|
|
615
|
+
secondary: "secondary";
|
|
616
|
+
trunk: "trunk";
|
|
617
|
+
tertiary: "tertiary";
|
|
618
|
+
service: "service";
|
|
619
|
+
track: "track";
|
|
620
|
+
}> & z.core.$partial, z.ZodNumber>>;
|
|
826
621
|
}, z.core.$strict>, z.ZodObject<{
|
|
827
622
|
type: z.ZodLiteral<"styleOverride">;
|
|
828
623
|
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -877,6 +672,10 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
877
672
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
878
673
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
879
674
|
fill: z.ZodOptional<z.ZodString>;
|
|
675
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
676
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
677
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
678
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
880
679
|
outline: z.ZodOptional<z.ZodString>;
|
|
881
680
|
}, z.core.$strict>>;
|
|
882
681
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -888,12 +687,12 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
888
687
|
labels: z.ZodOptional<z.ZodObject<{
|
|
889
688
|
water: z.ZodOptional<z.ZodString>;
|
|
890
689
|
road: z.ZodOptional<z.ZodString>;
|
|
690
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
891
691
|
primary: z.ZodOptional<z.ZodString>;
|
|
892
692
|
country: z.ZodOptional<z.ZodString>;
|
|
893
693
|
halo: z.ZodOptional<z.ZodString>;
|
|
894
694
|
muted: z.ZodOptional<z.ZodString>;
|
|
895
695
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
896
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
897
696
|
settlement: z.ZodOptional<z.ZodString>;
|
|
898
697
|
}, z.core.$strict>>;
|
|
899
698
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -948,6 +747,46 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
948
747
|
semibold: "semibold";
|
|
949
748
|
bold: "bold";
|
|
950
749
|
}>>;
|
|
750
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
751
|
+
font: z.ZodOptional<z.ZodString>;
|
|
752
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
753
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
754
|
+
regular: "regular";
|
|
755
|
+
medium: "medium";
|
|
756
|
+
semibold: "semibold";
|
|
757
|
+
bold: "bold";
|
|
758
|
+
}>>;
|
|
759
|
+
}, z.core.$strict>>;
|
|
760
|
+
poi: z.ZodOptional<z.ZodObject<{
|
|
761
|
+
font: z.ZodOptional<z.ZodString>;
|
|
762
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
763
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
764
|
+
regular: "regular";
|
|
765
|
+
medium: "medium";
|
|
766
|
+
semibold: "semibold";
|
|
767
|
+
bold: "bold";
|
|
768
|
+
}>>;
|
|
769
|
+
}, z.core.$strict>>;
|
|
770
|
+
roads: z.ZodOptional<z.ZodObject<{
|
|
771
|
+
font: z.ZodOptional<z.ZodString>;
|
|
772
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
773
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
774
|
+
regular: "regular";
|
|
775
|
+
medium: "medium";
|
|
776
|
+
semibold: "semibold";
|
|
777
|
+
bold: "bold";
|
|
778
|
+
}>>;
|
|
779
|
+
}, z.core.$strict>>;
|
|
780
|
+
water: z.ZodOptional<z.ZodObject<{
|
|
781
|
+
font: z.ZodOptional<z.ZodString>;
|
|
782
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
783
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
784
|
+
regular: "regular";
|
|
785
|
+
medium: "medium";
|
|
786
|
+
semibold: "semibold";
|
|
787
|
+
bold: "bold";
|
|
788
|
+
}>>;
|
|
789
|
+
}, z.core.$strict>>;
|
|
951
790
|
}, z.core.$strict>>;
|
|
952
791
|
density: z.ZodOptional<z.ZodEnum<{
|
|
953
792
|
clean: "clean";
|
|
@@ -977,6 +816,12 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
977
816
|
flat: "flat";
|
|
978
817
|
"3d": "3d";
|
|
979
818
|
}>>;
|
|
819
|
+
buildingStyle: z.ZodOptional<z.ZodObject<{
|
|
820
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
821
|
+
heightThreshold: z.ZodOptional<z.ZodNumber>;
|
|
822
|
+
outlineOpacity: z.ZodOptional<z.ZodNumber>;
|
|
823
|
+
outlineWidth: z.ZodOptional<z.ZodNumber>;
|
|
824
|
+
}, z.core.$strict>>;
|
|
980
825
|
terrain: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
981
826
|
none: "none";
|
|
982
827
|
"3d": "3d";
|
|
@@ -1011,6 +856,7 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
1011
856
|
url: z.ZodOptional<z.ZodURL>;
|
|
1012
857
|
attribution: z.ZodOptional<z.ZodString>;
|
|
1013
858
|
sourceLayers: z.ZodOptional<z.ZodObject<{
|
|
859
|
+
landcover: z.ZodOptional<z.ZodString>;
|
|
1014
860
|
landuse: z.ZodOptional<z.ZodString>;
|
|
1015
861
|
park: z.ZodOptional<z.ZodString>;
|
|
1016
862
|
water: z.ZodOptional<z.ZodString>;
|
|
@@ -1023,6 +869,7 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
1023
869
|
place: z.ZodOptional<z.ZodString>;
|
|
1024
870
|
poi: z.ZodOptional<z.ZodString>;
|
|
1025
871
|
}, z.core.$strict>>;
|
|
872
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1026
873
|
}, z.core.$strict>>;
|
|
1027
874
|
view: z.ZodOptional<z.ZodObject<{
|
|
1028
875
|
bearing: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1031,13 +878,14 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
1031
878
|
}, z.core.$strict>>;
|
|
1032
879
|
allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1033
880
|
}, z.core.$strict>;
|
|
1034
|
-
declare const configSchema: z.ZodObject<{
|
|
881
|
+
declare const configSchema: z.ZodPipe<z.ZodUnknown, z.ZodObject<{
|
|
1035
882
|
basemap: z.ZodOptional<z.ZodObject<{
|
|
1036
883
|
type: z.ZodLiteral<"osm">;
|
|
1037
884
|
attribution: z.ZodOptional<z.ZodString>;
|
|
1038
885
|
glyphs: z.ZodOptional<z.ZodString>;
|
|
1039
886
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
1040
887
|
sourceLayers: z.ZodOptional<z.ZodObject<{
|
|
888
|
+
landcover: z.ZodOptional<z.ZodString>;
|
|
1041
889
|
landuse: z.ZodOptional<z.ZodString>;
|
|
1042
890
|
park: z.ZodOptional<z.ZodString>;
|
|
1043
891
|
water: z.ZodOptional<z.ZodString>;
|
|
@@ -1053,6 +901,7 @@ declare const configSchema: z.ZodObject<{
|
|
|
1053
901
|
sprite: z.ZodOptional<z.ZodString>;
|
|
1054
902
|
tileset: z.ZodOptional<z.ZodString>;
|
|
1055
903
|
url: z.ZodOptional<z.ZodURL>;
|
|
904
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1056
905
|
}, z.core.$strict>>;
|
|
1057
906
|
name: z.ZodOptional<z.ZodString>;
|
|
1058
907
|
tileset: z.ZodOptional<z.ZodString>;
|
|
@@ -1083,6 +932,10 @@ declare const configSchema: z.ZodObject<{
|
|
|
1083
932
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
1084
933
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
1085
934
|
fill: z.ZodOptional<z.ZodString>;
|
|
935
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
936
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
937
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
938
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1086
939
|
outline: z.ZodOptional<z.ZodString>;
|
|
1087
940
|
}, z.core.$strict>>;
|
|
1088
941
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -1094,12 +947,12 @@ declare const configSchema: z.ZodObject<{
|
|
|
1094
947
|
labels: z.ZodOptional<z.ZodObject<{
|
|
1095
948
|
water: z.ZodOptional<z.ZodString>;
|
|
1096
949
|
road: z.ZodOptional<z.ZodString>;
|
|
950
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
1097
951
|
primary: z.ZodOptional<z.ZodString>;
|
|
1098
952
|
country: z.ZodOptional<z.ZodString>;
|
|
1099
953
|
halo: z.ZodOptional<z.ZodString>;
|
|
1100
954
|
muted: z.ZodOptional<z.ZodString>;
|
|
1101
955
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
1102
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
1103
956
|
settlement: z.ZodOptional<z.ZodString>;
|
|
1104
957
|
}, z.core.$strict>>;
|
|
1105
958
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -1176,6 +1029,10 @@ declare const configSchema: z.ZodObject<{
|
|
|
1176
1029
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
1177
1030
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
1178
1031
|
fill: z.ZodOptional<z.ZodString>;
|
|
1032
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
1033
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
1035
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1179
1036
|
outline: z.ZodOptional<z.ZodString>;
|
|
1180
1037
|
}, z.core.$strict>>;
|
|
1181
1038
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -1187,12 +1044,12 @@ declare const configSchema: z.ZodObject<{
|
|
|
1187
1044
|
labels: z.ZodOptional<z.ZodObject<{
|
|
1188
1045
|
water: z.ZodOptional<z.ZodString>;
|
|
1189
1046
|
road: z.ZodOptional<z.ZodString>;
|
|
1047
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
1190
1048
|
primary: z.ZodOptional<z.ZodString>;
|
|
1191
1049
|
country: z.ZodOptional<z.ZodString>;
|
|
1192
1050
|
halo: z.ZodOptional<z.ZodString>;
|
|
1193
1051
|
muted: z.ZodOptional<z.ZodString>;
|
|
1194
1052
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
1195
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
1196
1053
|
settlement: z.ZodOptional<z.ZodString>;
|
|
1197
1054
|
}, z.core.$strict>>;
|
|
1198
1055
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -1247,6 +1104,46 @@ declare const configSchema: z.ZodObject<{
|
|
|
1247
1104
|
semibold: "semibold";
|
|
1248
1105
|
bold: "bold";
|
|
1249
1106
|
}>>;
|
|
1107
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
1108
|
+
font: z.ZodOptional<z.ZodString>;
|
|
1109
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1110
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
1111
|
+
regular: "regular";
|
|
1112
|
+
medium: "medium";
|
|
1113
|
+
semibold: "semibold";
|
|
1114
|
+
bold: "bold";
|
|
1115
|
+
}>>;
|
|
1116
|
+
}, z.core.$strict>>;
|
|
1117
|
+
poi: z.ZodOptional<z.ZodObject<{
|
|
1118
|
+
font: z.ZodOptional<z.ZodString>;
|
|
1119
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
1121
|
+
regular: "regular";
|
|
1122
|
+
medium: "medium";
|
|
1123
|
+
semibold: "semibold";
|
|
1124
|
+
bold: "bold";
|
|
1125
|
+
}>>;
|
|
1126
|
+
}, z.core.$strict>>;
|
|
1127
|
+
roads: z.ZodOptional<z.ZodObject<{
|
|
1128
|
+
font: z.ZodOptional<z.ZodString>;
|
|
1129
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1130
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
1131
|
+
regular: "regular";
|
|
1132
|
+
medium: "medium";
|
|
1133
|
+
semibold: "semibold";
|
|
1134
|
+
bold: "bold";
|
|
1135
|
+
}>>;
|
|
1136
|
+
}, z.core.$strict>>;
|
|
1137
|
+
water: z.ZodOptional<z.ZodObject<{
|
|
1138
|
+
font: z.ZodOptional<z.ZodString>;
|
|
1139
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1140
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
1141
|
+
regular: "regular";
|
|
1142
|
+
medium: "medium";
|
|
1143
|
+
semibold: "semibold";
|
|
1144
|
+
bold: "bold";
|
|
1145
|
+
}>>;
|
|
1146
|
+
}, z.core.$strict>>;
|
|
1250
1147
|
}, z.core.$strict>>;
|
|
1251
1148
|
}, z.core.$strict>]>>;
|
|
1252
1149
|
modules: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1257,6 +1154,17 @@ declare const configSchema: z.ZodObject<{
|
|
|
1257
1154
|
major: "major";
|
|
1258
1155
|
all: "all";
|
|
1259
1156
|
}>>;
|
|
1157
|
+
roadClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1158
|
+
minor: "minor";
|
|
1159
|
+
motorway: "motorway";
|
|
1160
|
+
path: "path";
|
|
1161
|
+
primary: "primary";
|
|
1162
|
+
secondary: "secondary";
|
|
1163
|
+
trunk: "trunk";
|
|
1164
|
+
tertiary: "tertiary";
|
|
1165
|
+
service: "service";
|
|
1166
|
+
track: "track";
|
|
1167
|
+
}>>>;
|
|
1260
1168
|
roads: z.ZodOptional<z.ZodEnum<{
|
|
1261
1169
|
none: "none";
|
|
1262
1170
|
major: "major";
|
|
@@ -1272,6 +1180,16 @@ declare const configSchema: z.ZodObject<{
|
|
|
1272
1180
|
}, z.core.$strict>, z.ZodObject<{
|
|
1273
1181
|
type: z.ZodLiteral<"poi">;
|
|
1274
1182
|
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1183
|
+
classMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
1184
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
1185
|
+
uniform: "uniform";
|
|
1186
|
+
category: "category";
|
|
1187
|
+
}>>;
|
|
1188
|
+
density: z.ZodOptional<z.ZodEnum<{
|
|
1189
|
+
balanced: "balanced";
|
|
1190
|
+
dense: "dense";
|
|
1191
|
+
sparse: "sparse";
|
|
1192
|
+
}>>;
|
|
1275
1193
|
icons: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
1276
1194
|
essential: "essential";
|
|
1277
1195
|
full: "full";
|
|
@@ -1283,6 +1201,11 @@ declare const configSchema: z.ZodObject<{
|
|
|
1283
1201
|
minimal: "minimal";
|
|
1284
1202
|
}>>;
|
|
1285
1203
|
minZoom: z.ZodOptional<z.ZodNumber>;
|
|
1204
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
1205
|
+
coupleIconAndLabel: z.ZodOptional<z.ZodBoolean>;
|
|
1206
|
+
iconPadding: z.ZodOptional<z.ZodNumber>;
|
|
1207
|
+
textPadding: z.ZodOptional<z.ZodNumber>;
|
|
1208
|
+
}, z.core.$strict>>;
|
|
1286
1209
|
preset: z.ZodOptional<z.ZodEnum<{
|
|
1287
1210
|
balanced: "balanced";
|
|
1288
1211
|
none: "none";
|
|
@@ -1308,6 +1231,7 @@ declare const configSchema: z.ZodObject<{
|
|
|
1308
1231
|
clear: "clear";
|
|
1309
1232
|
strong: "strong";
|
|
1310
1233
|
}>>;
|
|
1234
|
+
oneWayMarkers: z.ZodOptional<z.ZodBoolean>;
|
|
1311
1235
|
outline: z.ZodOptional<z.ZodEnum<{
|
|
1312
1236
|
none: "none";
|
|
1313
1237
|
subtle: "subtle";
|
|
@@ -1318,6 +1242,17 @@ declare const configSchema: z.ZodObject<{
|
|
|
1318
1242
|
bold: "bold";
|
|
1319
1243
|
thin: "thin";
|
|
1320
1244
|
}>>;
|
|
1245
|
+
widthScale: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
1246
|
+
minor: "minor";
|
|
1247
|
+
motorway: "motorway";
|
|
1248
|
+
path: "path";
|
|
1249
|
+
primary: "primary";
|
|
1250
|
+
secondary: "secondary";
|
|
1251
|
+
trunk: "trunk";
|
|
1252
|
+
tertiary: "tertiary";
|
|
1253
|
+
service: "service";
|
|
1254
|
+
track: "track";
|
|
1255
|
+
}> & z.core.$partial, z.ZodNumber>>;
|
|
1321
1256
|
}, z.core.$strict>, z.ZodObject<{
|
|
1322
1257
|
type: z.ZodLiteral<"styleOverride">;
|
|
1323
1258
|
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1372,6 +1307,10 @@ declare const configSchema: z.ZodObject<{
|
|
|
1372
1307
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
1373
1308
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
1374
1309
|
fill: z.ZodOptional<z.ZodString>;
|
|
1310
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
1311
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1312
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
1313
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1375
1314
|
outline: z.ZodOptional<z.ZodString>;
|
|
1376
1315
|
}, z.core.$strict>>;
|
|
1377
1316
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -1383,12 +1322,12 @@ declare const configSchema: z.ZodObject<{
|
|
|
1383
1322
|
labels: z.ZodOptional<z.ZodObject<{
|
|
1384
1323
|
water: z.ZodOptional<z.ZodString>;
|
|
1385
1324
|
road: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
1386
1326
|
primary: z.ZodOptional<z.ZodString>;
|
|
1387
1327
|
country: z.ZodOptional<z.ZodString>;
|
|
1388
1328
|
halo: z.ZodOptional<z.ZodString>;
|
|
1389
1329
|
muted: z.ZodOptional<z.ZodString>;
|
|
1390
1330
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
1391
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
1392
1331
|
settlement: z.ZodOptional<z.ZodString>;
|
|
1393
1332
|
}, z.core.$strict>>;
|
|
1394
1333
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -1443,6 +1382,46 @@ declare const configSchema: z.ZodObject<{
|
|
|
1443
1382
|
semibold: "semibold";
|
|
1444
1383
|
bold: "bold";
|
|
1445
1384
|
}>>;
|
|
1385
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
1386
|
+
font: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1388
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
1389
|
+
regular: "regular";
|
|
1390
|
+
medium: "medium";
|
|
1391
|
+
semibold: "semibold";
|
|
1392
|
+
bold: "bold";
|
|
1393
|
+
}>>;
|
|
1394
|
+
}, z.core.$strict>>;
|
|
1395
|
+
poi: z.ZodOptional<z.ZodObject<{
|
|
1396
|
+
font: z.ZodOptional<z.ZodString>;
|
|
1397
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1398
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
1399
|
+
regular: "regular";
|
|
1400
|
+
medium: "medium";
|
|
1401
|
+
semibold: "semibold";
|
|
1402
|
+
bold: "bold";
|
|
1403
|
+
}>>;
|
|
1404
|
+
}, z.core.$strict>>;
|
|
1405
|
+
roads: z.ZodOptional<z.ZodObject<{
|
|
1406
|
+
font: z.ZodOptional<z.ZodString>;
|
|
1407
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1408
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
1409
|
+
regular: "regular";
|
|
1410
|
+
medium: "medium";
|
|
1411
|
+
semibold: "semibold";
|
|
1412
|
+
bold: "bold";
|
|
1413
|
+
}>>;
|
|
1414
|
+
}, z.core.$strict>>;
|
|
1415
|
+
water: z.ZodOptional<z.ZodObject<{
|
|
1416
|
+
font: z.ZodOptional<z.ZodString>;
|
|
1417
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1418
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
1419
|
+
regular: "regular";
|
|
1420
|
+
medium: "medium";
|
|
1421
|
+
semibold: "semibold";
|
|
1422
|
+
bold: "bold";
|
|
1423
|
+
}>>;
|
|
1424
|
+
}, z.core.$strict>>;
|
|
1446
1425
|
}, z.core.$strict>>;
|
|
1447
1426
|
density: z.ZodOptional<z.ZodEnum<{
|
|
1448
1427
|
clean: "clean";
|
|
@@ -1472,6 +1451,12 @@ declare const configSchema: z.ZodObject<{
|
|
|
1472
1451
|
flat: "flat";
|
|
1473
1452
|
"3d": "3d";
|
|
1474
1453
|
}>>;
|
|
1454
|
+
buildingStyle: z.ZodOptional<z.ZodObject<{
|
|
1455
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
1456
|
+
heightThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1457
|
+
outlineOpacity: z.ZodOptional<z.ZodNumber>;
|
|
1458
|
+
outlineWidth: z.ZodOptional<z.ZodNumber>;
|
|
1459
|
+
}, z.core.$strict>>;
|
|
1475
1460
|
terrain: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1476
1461
|
none: "none";
|
|
1477
1462
|
"3d": "3d";
|
|
@@ -1506,6 +1491,7 @@ declare const configSchema: z.ZodObject<{
|
|
|
1506
1491
|
url: z.ZodOptional<z.ZodURL>;
|
|
1507
1492
|
attribution: z.ZodOptional<z.ZodString>;
|
|
1508
1493
|
sourceLayers: z.ZodOptional<z.ZodObject<{
|
|
1494
|
+
landcover: z.ZodOptional<z.ZodString>;
|
|
1509
1495
|
landuse: z.ZodOptional<z.ZodString>;
|
|
1510
1496
|
park: z.ZodOptional<z.ZodString>;
|
|
1511
1497
|
water: z.ZodOptional<z.ZodString>;
|
|
@@ -1518,6 +1504,7 @@ declare const configSchema: z.ZodObject<{
|
|
|
1518
1504
|
place: z.ZodOptional<z.ZodString>;
|
|
1519
1505
|
poi: z.ZodOptional<z.ZodString>;
|
|
1520
1506
|
}, z.core.$strict>>;
|
|
1507
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1521
1508
|
}, z.core.$strict>>;
|
|
1522
1509
|
view: z.ZodOptional<z.ZodObject<{
|
|
1523
1510
|
bearing: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1525,9 +1512,42 @@ declare const configSchema: z.ZodObject<{
|
|
|
1525
1512
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1526
1513
|
}, z.core.$strict>>;
|
|
1527
1514
|
allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1528
|
-
}, z.core.$strict
|
|
1529
|
-
declare const tileflowProjectSchema: z.ZodObject<{
|
|
1515
|
+
}, z.core.$strict>>;
|
|
1516
|
+
declare const tileflowProjectSchema: z.ZodPipe<z.ZodUnknown, z.ZodObject<{
|
|
1530
1517
|
icons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1518
|
+
scenes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1519
|
+
map: z.ZodString;
|
|
1520
|
+
camera: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1521
|
+
type: z.ZodLiteral<"center">;
|
|
1522
|
+
center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
1523
|
+
zoom: z.ZodNumber;
|
|
1524
|
+
bearing: z.ZodOptional<z.ZodNumber>;
|
|
1525
|
+
pitch: z.ZodOptional<z.ZodNumber>;
|
|
1526
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1527
|
+
type: z.ZodLiteral<"bounds">;
|
|
1528
|
+
bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
1529
|
+
padding: z.ZodOptional<z.ZodNumber>;
|
|
1530
|
+
bearing: z.ZodOptional<z.ZodNumber>;
|
|
1531
|
+
pitch: z.ZodOptional<z.ZodNumber>;
|
|
1532
|
+
}, z.core.$strict>], "type">;
|
|
1533
|
+
viewport: z.ZodObject<{
|
|
1534
|
+
width: z.ZodNumber;
|
|
1535
|
+
height: z.ZodNumber;
|
|
1536
|
+
dpr: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
1537
|
+
}, z.core.$strict>;
|
|
1538
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1539
|
+
kind: z.ZodLiteral<"map">;
|
|
1540
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1541
|
+
kind: z.ZodLiteral<"application">;
|
|
1542
|
+
path: z.ZodString;
|
|
1543
|
+
captureId: z.ZodOptional<z.ZodString>;
|
|
1544
|
+
selector: z.ZodOptional<z.ZodString>;
|
|
1545
|
+
frame: z.ZodOptional<z.ZodEnum<{
|
|
1546
|
+
map: "map";
|
|
1547
|
+
viewport: "viewport";
|
|
1548
|
+
}>>;
|
|
1549
|
+
}, z.core.$strict>], "kind">>;
|
|
1550
|
+
}, z.core.$strict>>>;
|
|
1531
1551
|
themes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1532
1552
|
colors: z.ZodOptional<z.ZodObject<{
|
|
1533
1553
|
accent: z.ZodOptional<z.ZodString>;
|
|
@@ -1555,6 +1575,10 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1555
1575
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
1556
1576
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
1557
1577
|
fill: z.ZodOptional<z.ZodString>;
|
|
1578
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
1579
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1580
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1558
1582
|
outline: z.ZodOptional<z.ZodString>;
|
|
1559
1583
|
}, z.core.$strict>>;
|
|
1560
1584
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -1566,12 +1590,12 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1566
1590
|
labels: z.ZodOptional<z.ZodObject<{
|
|
1567
1591
|
water: z.ZodOptional<z.ZodString>;
|
|
1568
1592
|
road: z.ZodOptional<z.ZodString>;
|
|
1593
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
1569
1594
|
primary: z.ZodOptional<z.ZodString>;
|
|
1570
1595
|
country: z.ZodOptional<z.ZodString>;
|
|
1571
1596
|
halo: z.ZodOptional<z.ZodString>;
|
|
1572
1597
|
muted: z.ZodOptional<z.ZodString>;
|
|
1573
1598
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
1574
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
1575
1599
|
settlement: z.ZodOptional<z.ZodString>;
|
|
1576
1600
|
}, z.core.$strict>>;
|
|
1577
1601
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -1648,6 +1672,10 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1648
1672
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
1649
1673
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
1650
1674
|
fill: z.ZodOptional<z.ZodString>;
|
|
1675
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
1676
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1677
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1651
1679
|
outline: z.ZodOptional<z.ZodString>;
|
|
1652
1680
|
}, z.core.$strict>>;
|
|
1653
1681
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -1659,12 +1687,12 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1659
1687
|
labels: z.ZodOptional<z.ZodObject<{
|
|
1660
1688
|
water: z.ZodOptional<z.ZodString>;
|
|
1661
1689
|
road: z.ZodOptional<z.ZodString>;
|
|
1690
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
1662
1691
|
primary: z.ZodOptional<z.ZodString>;
|
|
1663
1692
|
country: z.ZodOptional<z.ZodString>;
|
|
1664
1693
|
halo: z.ZodOptional<z.ZodString>;
|
|
1665
1694
|
muted: z.ZodOptional<z.ZodString>;
|
|
1666
1695
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
1667
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
1668
1696
|
settlement: z.ZodOptional<z.ZodString>;
|
|
1669
1697
|
}, z.core.$strict>>;
|
|
1670
1698
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -1719,6 +1747,46 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1719
1747
|
semibold: "semibold";
|
|
1720
1748
|
bold: "bold";
|
|
1721
1749
|
}>>;
|
|
1750
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
1751
|
+
font: z.ZodOptional<z.ZodString>;
|
|
1752
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1753
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
1754
|
+
regular: "regular";
|
|
1755
|
+
medium: "medium";
|
|
1756
|
+
semibold: "semibold";
|
|
1757
|
+
bold: "bold";
|
|
1758
|
+
}>>;
|
|
1759
|
+
}, z.core.$strict>>;
|
|
1760
|
+
poi: z.ZodOptional<z.ZodObject<{
|
|
1761
|
+
font: z.ZodOptional<z.ZodString>;
|
|
1762
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1763
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
1764
|
+
regular: "regular";
|
|
1765
|
+
medium: "medium";
|
|
1766
|
+
semibold: "semibold";
|
|
1767
|
+
bold: "bold";
|
|
1768
|
+
}>>;
|
|
1769
|
+
}, z.core.$strict>>;
|
|
1770
|
+
roads: z.ZodOptional<z.ZodObject<{
|
|
1771
|
+
font: z.ZodOptional<z.ZodString>;
|
|
1772
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1773
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
1774
|
+
regular: "regular";
|
|
1775
|
+
medium: "medium";
|
|
1776
|
+
semibold: "semibold";
|
|
1777
|
+
bold: "bold";
|
|
1778
|
+
}>>;
|
|
1779
|
+
}, z.core.$strict>>;
|
|
1780
|
+
water: z.ZodOptional<z.ZodObject<{
|
|
1781
|
+
font: z.ZodOptional<z.ZodString>;
|
|
1782
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1783
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
1784
|
+
regular: "regular";
|
|
1785
|
+
medium: "medium";
|
|
1786
|
+
semibold: "semibold";
|
|
1787
|
+
bold: "bold";
|
|
1788
|
+
}>>;
|
|
1789
|
+
}, z.core.$strict>>;
|
|
1722
1790
|
}, z.core.$strict>>;
|
|
1723
1791
|
}, z.core.$strict>>>;
|
|
1724
1792
|
tilesets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1726,6 +1794,7 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1726
1794
|
name: z.ZodOptional<z.ZodString>;
|
|
1727
1795
|
attribution: z.ZodOptional<z.ZodString>;
|
|
1728
1796
|
sourceLayers: z.ZodOptional<z.ZodObject<{
|
|
1797
|
+
landcover: z.ZodOptional<z.ZodString>;
|
|
1729
1798
|
landuse: z.ZodOptional<z.ZodString>;
|
|
1730
1799
|
park: z.ZodOptional<z.ZodString>;
|
|
1731
1800
|
water: z.ZodOptional<z.ZodString>;
|
|
@@ -1738,14 +1807,16 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1738
1807
|
place: z.ZodOptional<z.ZodString>;
|
|
1739
1808
|
poi: z.ZodOptional<z.ZodString>;
|
|
1740
1809
|
}, z.core.$strict>>;
|
|
1810
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1741
1811
|
}, z.core.$strict>>>;
|
|
1742
|
-
maps: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1812
|
+
maps: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodObject<{
|
|
1743
1813
|
basemap: z.ZodOptional<z.ZodObject<{
|
|
1744
1814
|
type: z.ZodLiteral<"osm">;
|
|
1745
1815
|
attribution: z.ZodOptional<z.ZodString>;
|
|
1746
1816
|
glyphs: z.ZodOptional<z.ZodString>;
|
|
1747
1817
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
1748
1818
|
sourceLayers: z.ZodOptional<z.ZodObject<{
|
|
1819
|
+
landcover: z.ZodOptional<z.ZodString>;
|
|
1749
1820
|
landuse: z.ZodOptional<z.ZodString>;
|
|
1750
1821
|
park: z.ZodOptional<z.ZodString>;
|
|
1751
1822
|
water: z.ZodOptional<z.ZodString>;
|
|
@@ -1761,6 +1832,7 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1761
1832
|
sprite: z.ZodOptional<z.ZodString>;
|
|
1762
1833
|
tileset: z.ZodOptional<z.ZodString>;
|
|
1763
1834
|
url: z.ZodOptional<z.ZodURL>;
|
|
1835
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1764
1836
|
}, z.core.$strict>>;
|
|
1765
1837
|
name: z.ZodOptional<z.ZodString>;
|
|
1766
1838
|
tileset: z.ZodOptional<z.ZodString>;
|
|
@@ -1791,6 +1863,10 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1791
1863
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
1792
1864
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
1793
1865
|
fill: z.ZodOptional<z.ZodString>;
|
|
1866
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
1867
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1868
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
1869
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1794
1870
|
outline: z.ZodOptional<z.ZodString>;
|
|
1795
1871
|
}, z.core.$strict>>;
|
|
1796
1872
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -1802,12 +1878,12 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1802
1878
|
labels: z.ZodOptional<z.ZodObject<{
|
|
1803
1879
|
water: z.ZodOptional<z.ZodString>;
|
|
1804
1880
|
road: z.ZodOptional<z.ZodString>;
|
|
1881
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
1805
1882
|
primary: z.ZodOptional<z.ZodString>;
|
|
1806
1883
|
country: z.ZodOptional<z.ZodString>;
|
|
1807
1884
|
halo: z.ZodOptional<z.ZodString>;
|
|
1808
1885
|
muted: z.ZodOptional<z.ZodString>;
|
|
1809
1886
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
1810
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
1811
1887
|
settlement: z.ZodOptional<z.ZodString>;
|
|
1812
1888
|
}, z.core.$strict>>;
|
|
1813
1889
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -1884,6 +1960,10 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1884
1960
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
1885
1961
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
1886
1962
|
fill: z.ZodOptional<z.ZodString>;
|
|
1963
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
1964
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1965
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
1966
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
1887
1967
|
outline: z.ZodOptional<z.ZodString>;
|
|
1888
1968
|
}, z.core.$strict>>;
|
|
1889
1969
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -1895,12 +1975,12 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1895
1975
|
labels: z.ZodOptional<z.ZodObject<{
|
|
1896
1976
|
water: z.ZodOptional<z.ZodString>;
|
|
1897
1977
|
road: z.ZodOptional<z.ZodString>;
|
|
1978
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
1898
1979
|
primary: z.ZodOptional<z.ZodString>;
|
|
1899
1980
|
country: z.ZodOptional<z.ZodString>;
|
|
1900
1981
|
halo: z.ZodOptional<z.ZodString>;
|
|
1901
1982
|
muted: z.ZodOptional<z.ZodString>;
|
|
1902
1983
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
1903
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
1904
1984
|
settlement: z.ZodOptional<z.ZodString>;
|
|
1905
1985
|
}, z.core.$strict>>;
|
|
1906
1986
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -1955,6 +2035,46 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1955
2035
|
semibold: "semibold";
|
|
1956
2036
|
bold: "bold";
|
|
1957
2037
|
}>>;
|
|
2038
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
2039
|
+
font: z.ZodOptional<z.ZodString>;
|
|
2040
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2041
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
2042
|
+
regular: "regular";
|
|
2043
|
+
medium: "medium";
|
|
2044
|
+
semibold: "semibold";
|
|
2045
|
+
bold: "bold";
|
|
2046
|
+
}>>;
|
|
2047
|
+
}, z.core.$strict>>;
|
|
2048
|
+
poi: z.ZodOptional<z.ZodObject<{
|
|
2049
|
+
font: z.ZodOptional<z.ZodString>;
|
|
2050
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2051
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
2052
|
+
regular: "regular";
|
|
2053
|
+
medium: "medium";
|
|
2054
|
+
semibold: "semibold";
|
|
2055
|
+
bold: "bold";
|
|
2056
|
+
}>>;
|
|
2057
|
+
}, z.core.$strict>>;
|
|
2058
|
+
roads: z.ZodOptional<z.ZodObject<{
|
|
2059
|
+
font: z.ZodOptional<z.ZodString>;
|
|
2060
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2061
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
2062
|
+
regular: "regular";
|
|
2063
|
+
medium: "medium";
|
|
2064
|
+
semibold: "semibold";
|
|
2065
|
+
bold: "bold";
|
|
2066
|
+
}>>;
|
|
2067
|
+
}, z.core.$strict>>;
|
|
2068
|
+
water: z.ZodOptional<z.ZodObject<{
|
|
2069
|
+
font: z.ZodOptional<z.ZodString>;
|
|
2070
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2071
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
2072
|
+
regular: "regular";
|
|
2073
|
+
medium: "medium";
|
|
2074
|
+
semibold: "semibold";
|
|
2075
|
+
bold: "bold";
|
|
2076
|
+
}>>;
|
|
2077
|
+
}, z.core.$strict>>;
|
|
1958
2078
|
}, z.core.$strict>>;
|
|
1959
2079
|
}, z.core.$strict>]>>;
|
|
1960
2080
|
modules: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1965,6 +2085,17 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1965
2085
|
major: "major";
|
|
1966
2086
|
all: "all";
|
|
1967
2087
|
}>>;
|
|
2088
|
+
roadClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2089
|
+
minor: "minor";
|
|
2090
|
+
motorway: "motorway";
|
|
2091
|
+
path: "path";
|
|
2092
|
+
primary: "primary";
|
|
2093
|
+
secondary: "secondary";
|
|
2094
|
+
trunk: "trunk";
|
|
2095
|
+
tertiary: "tertiary";
|
|
2096
|
+
service: "service";
|
|
2097
|
+
track: "track";
|
|
2098
|
+
}>>>;
|
|
1968
2099
|
roads: z.ZodOptional<z.ZodEnum<{
|
|
1969
2100
|
none: "none";
|
|
1970
2101
|
major: "major";
|
|
@@ -1980,6 +2111,16 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1980
2111
|
}, z.core.$strict>, z.ZodObject<{
|
|
1981
2112
|
type: z.ZodLiteral<"poi">;
|
|
1982
2113
|
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2114
|
+
classMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
2115
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
2116
|
+
uniform: "uniform";
|
|
2117
|
+
category: "category";
|
|
2118
|
+
}>>;
|
|
2119
|
+
density: z.ZodOptional<z.ZodEnum<{
|
|
2120
|
+
balanced: "balanced";
|
|
2121
|
+
dense: "dense";
|
|
2122
|
+
sparse: "sparse";
|
|
2123
|
+
}>>;
|
|
1983
2124
|
icons: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
1984
2125
|
essential: "essential";
|
|
1985
2126
|
full: "full";
|
|
@@ -1991,6 +2132,11 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1991
2132
|
minimal: "minimal";
|
|
1992
2133
|
}>>;
|
|
1993
2134
|
minZoom: z.ZodOptional<z.ZodNumber>;
|
|
2135
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
2136
|
+
coupleIconAndLabel: z.ZodOptional<z.ZodBoolean>;
|
|
2137
|
+
iconPadding: z.ZodOptional<z.ZodNumber>;
|
|
2138
|
+
textPadding: z.ZodOptional<z.ZodNumber>;
|
|
2139
|
+
}, z.core.$strict>>;
|
|
1994
2140
|
preset: z.ZodOptional<z.ZodEnum<{
|
|
1995
2141
|
balanced: "balanced";
|
|
1996
2142
|
none: "none";
|
|
@@ -2016,6 +2162,7 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
2016
2162
|
clear: "clear";
|
|
2017
2163
|
strong: "strong";
|
|
2018
2164
|
}>>;
|
|
2165
|
+
oneWayMarkers: z.ZodOptional<z.ZodBoolean>;
|
|
2019
2166
|
outline: z.ZodOptional<z.ZodEnum<{
|
|
2020
2167
|
none: "none";
|
|
2021
2168
|
subtle: "subtle";
|
|
@@ -2026,6 +2173,17 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
2026
2173
|
bold: "bold";
|
|
2027
2174
|
thin: "thin";
|
|
2028
2175
|
}>>;
|
|
2176
|
+
widthScale: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
2177
|
+
minor: "minor";
|
|
2178
|
+
motorway: "motorway";
|
|
2179
|
+
path: "path";
|
|
2180
|
+
primary: "primary";
|
|
2181
|
+
secondary: "secondary";
|
|
2182
|
+
trunk: "trunk";
|
|
2183
|
+
tertiary: "tertiary";
|
|
2184
|
+
service: "service";
|
|
2185
|
+
track: "track";
|
|
2186
|
+
}> & z.core.$partial, z.ZodNumber>>;
|
|
2029
2187
|
}, z.core.$strict>, z.ZodObject<{
|
|
2030
2188
|
type: z.ZodLiteral<"styleOverride">;
|
|
2031
2189
|
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -2080,6 +2238,10 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
2080
2238
|
buildings: z.ZodOptional<z.ZodObject<{
|
|
2081
2239
|
extrusion: z.ZodOptional<z.ZodString>;
|
|
2082
2240
|
fill: z.ZodOptional<z.ZodString>;
|
|
2241
|
+
highRise: z.ZodOptional<z.ZodString>;
|
|
2242
|
+
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
2243
|
+
lowRise: z.ZodOptional<z.ZodString>;
|
|
2244
|
+
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
2083
2245
|
outline: z.ZodOptional<z.ZodString>;
|
|
2084
2246
|
}, z.core.$strict>>;
|
|
2085
2247
|
hydro: z.ZodOptional<z.ZodObject<{
|
|
@@ -2091,12 +2253,12 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
2091
2253
|
labels: z.ZodOptional<z.ZodObject<{
|
|
2092
2254
|
water: z.ZodOptional<z.ZodString>;
|
|
2093
2255
|
road: z.ZodOptional<z.ZodString>;
|
|
2256
|
+
poi: z.ZodOptional<z.ZodString>;
|
|
2094
2257
|
primary: z.ZodOptional<z.ZodString>;
|
|
2095
2258
|
country: z.ZodOptional<z.ZodString>;
|
|
2096
2259
|
halo: z.ZodOptional<z.ZodString>;
|
|
2097
2260
|
muted: z.ZodOptional<z.ZodString>;
|
|
2098
2261
|
neighborhood: z.ZodOptional<z.ZodString>;
|
|
2099
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
2100
2262
|
settlement: z.ZodOptional<z.ZodString>;
|
|
2101
2263
|
}, z.core.$strict>>;
|
|
2102
2264
|
landcover: z.ZodOptional<z.ZodObject<{
|
|
@@ -2151,6 +2313,46 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
2151
2313
|
semibold: "semibold";
|
|
2152
2314
|
bold: "bold";
|
|
2153
2315
|
}>>;
|
|
2316
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
2317
|
+
font: z.ZodOptional<z.ZodString>;
|
|
2318
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2319
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
2320
|
+
regular: "regular";
|
|
2321
|
+
medium: "medium";
|
|
2322
|
+
semibold: "semibold";
|
|
2323
|
+
bold: "bold";
|
|
2324
|
+
}>>;
|
|
2325
|
+
}, z.core.$strict>>;
|
|
2326
|
+
poi: z.ZodOptional<z.ZodObject<{
|
|
2327
|
+
font: z.ZodOptional<z.ZodString>;
|
|
2328
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2329
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
2330
|
+
regular: "regular";
|
|
2331
|
+
medium: "medium";
|
|
2332
|
+
semibold: "semibold";
|
|
2333
|
+
bold: "bold";
|
|
2334
|
+
}>>;
|
|
2335
|
+
}, z.core.$strict>>;
|
|
2336
|
+
roads: z.ZodOptional<z.ZodObject<{
|
|
2337
|
+
font: z.ZodOptional<z.ZodString>;
|
|
2338
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2339
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
2340
|
+
regular: "regular";
|
|
2341
|
+
medium: "medium";
|
|
2342
|
+
semibold: "semibold";
|
|
2343
|
+
bold: "bold";
|
|
2344
|
+
}>>;
|
|
2345
|
+
}, z.core.$strict>>;
|
|
2346
|
+
water: z.ZodOptional<z.ZodObject<{
|
|
2347
|
+
font: z.ZodOptional<z.ZodString>;
|
|
2348
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2349
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
2350
|
+
regular: "regular";
|
|
2351
|
+
medium: "medium";
|
|
2352
|
+
semibold: "semibold";
|
|
2353
|
+
bold: "bold";
|
|
2354
|
+
}>>;
|
|
2355
|
+
}, z.core.$strict>>;
|
|
2154
2356
|
}, z.core.$strict>>;
|
|
2155
2357
|
density: z.ZodOptional<z.ZodEnum<{
|
|
2156
2358
|
clean: "clean";
|
|
@@ -2180,6 +2382,12 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
2180
2382
|
flat: "flat";
|
|
2181
2383
|
"3d": "3d";
|
|
2182
2384
|
}>>;
|
|
2385
|
+
buildingStyle: z.ZodOptional<z.ZodObject<{
|
|
2386
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
2387
|
+
heightThreshold: z.ZodOptional<z.ZodNumber>;
|
|
2388
|
+
outlineOpacity: z.ZodOptional<z.ZodNumber>;
|
|
2389
|
+
outlineWidth: z.ZodOptional<z.ZodNumber>;
|
|
2390
|
+
}, z.core.$strict>>;
|
|
2183
2391
|
terrain: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2184
2392
|
none: "none";
|
|
2185
2393
|
"3d": "3d";
|
|
@@ -2214,6 +2422,7 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
2214
2422
|
url: z.ZodOptional<z.ZodURL>;
|
|
2215
2423
|
attribution: z.ZodOptional<z.ZodString>;
|
|
2216
2424
|
sourceLayers: z.ZodOptional<z.ZodObject<{
|
|
2425
|
+
landcover: z.ZodOptional<z.ZodString>;
|
|
2217
2426
|
landuse: z.ZodOptional<z.ZodString>;
|
|
2218
2427
|
park: z.ZodOptional<z.ZodString>;
|
|
2219
2428
|
water: z.ZodOptional<z.ZodString>;
|
|
@@ -2226,6 +2435,7 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
2226
2435
|
place: z.ZodOptional<z.ZodString>;
|
|
2227
2436
|
poi: z.ZodOptional<z.ZodString>;
|
|
2228
2437
|
}, z.core.$strict>>;
|
|
2438
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2229
2439
|
}, z.core.$strict>>;
|
|
2230
2440
|
view: z.ZodOptional<z.ZodObject<{
|
|
2231
2441
|
bearing: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2233,8 +2443,8 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
2233
2443
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
2234
2444
|
}, z.core.$strict>>;
|
|
2235
2445
|
allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2236
|
-
}, z.core.$strict
|
|
2237
|
-
}, z.core.$strict
|
|
2446
|
+
}, z.core.$strict>>>;
|
|
2447
|
+
}, z.core.$strict>>;
|
|
2238
2448
|
declare function parseTileflowMap(input: unknown): TileflowConfig;
|
|
2239
2449
|
declare function parseTileflowProject(input: unknown): TileflowProjectConfig;
|
|
2240
2450
|
declare function validateConfig(input: unknown): ValidationResult;
|
|
@@ -2252,112 +2462,139 @@ declare function poi(options?: TileflowPoiModuleOptions): TileflowPoiModuleConfi
|
|
|
2252
2462
|
|
|
2253
2463
|
declare function styleOverride(options?: TileflowStyleOverrideOptions): TileflowStyleOverrideModuleConfig;
|
|
2254
2464
|
|
|
2255
|
-
declare const
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
};
|
|
2268
|
-
type TileflowMapMarker = {
|
|
2269
|
-
id: string;
|
|
2270
|
-
coordinates: [number, number];
|
|
2271
|
-
color?: string;
|
|
2272
|
-
label?: string;
|
|
2465
|
+
declare const tileflowIconPackageFileNames: readonly ["sprite.json", "sprite.png", "sprite@2x.json", "sprite@2x.png"];
|
|
2466
|
+
type TileflowIconPackageFileName = (typeof tileflowIconPackageFileNames)[number];
|
|
2467
|
+
declare const tileflowHostedIconIdPattern: RegExp;
|
|
2468
|
+
declare const tileflowIconPackageLimits: {
|
|
2469
|
+
readonly decodeConcurrency: 4;
|
|
2470
|
+
readonly maxAtlasDimension: 2048;
|
|
2471
|
+
readonly maxDecodedPixelsPerIcon: 4194304;
|
|
2472
|
+
readonly maxGeneratedFileBytes: number;
|
|
2473
|
+
readonly maxGeneratedPackageBytes: number;
|
|
2474
|
+
readonly maxIconCount: 256;
|
|
2475
|
+
readonly maxSourceBytes: number;
|
|
2476
|
+
readonly maxSourceFileBytes: number;
|
|
2273
2477
|
};
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2478
|
+
/**
|
|
2479
|
+
* Portable compatibility values shared by the public CLI and hosted policy.
|
|
2480
|
+
* Commercial entitlements still belong to the database package.
|
|
2481
|
+
*/
|
|
2482
|
+
declare const tileflowHostedAlphaCompatibility: {
|
|
2483
|
+
readonly iconPackages: {
|
|
2484
|
+
readonly maxGeneratedBytesPerProject: number;
|
|
2485
|
+
readonly maxRetainedPerProject: 24;
|
|
2486
|
+
};
|
|
2487
|
+
readonly maxMapsPerDeploy: 1;
|
|
2279
2488
|
};
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2489
|
+
declare const tileflowIconPackageContentHashSchema: z.ZodString;
|
|
2490
|
+
declare const tileflowHostedIconIdSchema: z.ZodString;
|
|
2491
|
+
declare const tileflowRenderedIconManifestEntrySchema: z.ZodObject<{
|
|
2492
|
+
name: z.ZodString;
|
|
2493
|
+
pixelSha256: z.ZodObject<{
|
|
2494
|
+
oneX: z.ZodString;
|
|
2495
|
+
twoX: z.ZodString;
|
|
2496
|
+
}, z.core.$strict>;
|
|
2497
|
+
}, z.core.$strict>;
|
|
2498
|
+
declare const tileflowIconPackageLabelSchema: z.ZodString;
|
|
2499
|
+
declare const tileflowIconPackageManifestSchema: z.ZodObject<{
|
|
2500
|
+
files: z.ZodTuple<[z.ZodObject<{
|
|
2501
|
+
byteLength: z.ZodNumber;
|
|
2502
|
+
contentType: z.ZodLiteral<"application/json" | "image/png">;
|
|
2503
|
+
name: z.ZodLiteral<"sprite.json" | "sprite.png" | "sprite@2x.json" | "sprite@2x.png">;
|
|
2504
|
+
sha256: z.ZodString;
|
|
2505
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2506
|
+
byteLength: z.ZodNumber;
|
|
2507
|
+
contentType: z.ZodLiteral<"application/json" | "image/png">;
|
|
2508
|
+
name: z.ZodLiteral<"sprite.json" | "sprite.png" | "sprite@2x.json" | "sprite@2x.png">;
|
|
2509
|
+
sha256: z.ZodString;
|
|
2510
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2511
|
+
byteLength: z.ZodNumber;
|
|
2512
|
+
contentType: z.ZodLiteral<"application/json" | "image/png">;
|
|
2513
|
+
name: z.ZodLiteral<"sprite.json" | "sprite.png" | "sprite@2x.json" | "sprite@2x.png">;
|
|
2514
|
+
sha256: z.ZodString;
|
|
2515
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2516
|
+
byteLength: z.ZodNumber;
|
|
2517
|
+
contentType: z.ZodLiteral<"application/json" | "image/png">;
|
|
2518
|
+
name: z.ZodLiteral<"sprite.json" | "sprite.png" | "sprite@2x.json" | "sprite@2x.png">;
|
|
2519
|
+
sha256: z.ZodString;
|
|
2520
|
+
}, z.core.$strict>], null>;
|
|
2521
|
+
format: z.ZodLiteral<"tileflow-icon-package-v1">;
|
|
2522
|
+
iconNames: z.ZodArray<z.ZodString>;
|
|
2523
|
+
renderedIcons: z.ZodArray<z.ZodObject<{
|
|
2524
|
+
name: z.ZodString;
|
|
2525
|
+
pixelSha256: z.ZodObject<{
|
|
2526
|
+
oneX: z.ZodString;
|
|
2527
|
+
twoX: z.ZodString;
|
|
2528
|
+
}, z.core.$strict>;
|
|
2529
|
+
}, z.core.$strict>>;
|
|
2530
|
+
sprites: z.ZodObject<{
|
|
2531
|
+
oneX: z.ZodObject<{
|
|
2532
|
+
height: z.ZodNumber;
|
|
2533
|
+
width: z.ZodNumber;
|
|
2534
|
+
pixelRatio: z.ZodLiteral<1>;
|
|
2535
|
+
}, z.core.$strict>;
|
|
2536
|
+
twoX: z.ZodObject<{
|
|
2537
|
+
height: z.ZodNumber;
|
|
2538
|
+
width: z.ZodNumber;
|
|
2539
|
+
pixelRatio: z.ZodLiteral<2>;
|
|
2540
|
+
}, z.core.$strict>;
|
|
2541
|
+
}, z.core.$strict>;
|
|
2542
|
+
}, z.core.$strict>;
|
|
2543
|
+
type TileflowIconPackageManifest = z.infer<typeof tileflowIconPackageManifestSchema>;
|
|
2544
|
+
type TileflowRenderedIconManifestEntry = z.infer<typeof tileflowRenderedIconManifestEntrySchema>;
|
|
2545
|
+
declare function compareCodeUnits(left: string, right: string): number;
|
|
2546
|
+
declare function serializeCanonicalJson(value: unknown): string;
|
|
2547
|
+
declare function serializeTileflowIconPackageManifest(input: TileflowIconPackageManifest): string;
|
|
2548
|
+
declare function sha256Hex(input: string | Uint8Array): Promise<string>;
|
|
2549
|
+
declare function hashTileflowIconPackageManifest(input: TileflowIconPackageManifest): Promise<string>;
|
|
2550
|
+
/**
|
|
2551
|
+
* Hashes the delivered pixels of one rendered icon without including its name.
|
|
2552
|
+
*
|
|
2553
|
+
* The v1 binary frame is the UTF-8 domain `tileflow-rendered-icon-pixels-v1\0`, followed by one
|
|
2554
|
+
* byte for the pixel ratio, unsigned 32-bit big-endian width and height, then row-major RGBA.
|
|
2555
|
+
* Fully transparent pixels have their RGB channels zeroed in a copy before hashing so invisible
|
|
2556
|
+
* decoder data cannot create a visual difference.
|
|
2557
|
+
*/
|
|
2558
|
+
declare function hashTileflowRenderedIconPixels(input: {
|
|
2559
|
+
height: number;
|
|
2560
|
+
pixelRatio: 1 | 2;
|
|
2561
|
+
rgba: Uint8Array;
|
|
2562
|
+
width: number;
|
|
2563
|
+
}): Promise<string>;
|
|
2564
|
+
|
|
2565
|
+
type TileflowIconManifestDiff = {
|
|
2566
|
+
added: string[];
|
|
2567
|
+
afterBytes: number;
|
|
2568
|
+
beforeBytes: number;
|
|
2569
|
+
modified: string[];
|
|
2570
|
+
removed: string[];
|
|
2571
|
+
unchangedCount: number;
|
|
2305
2572
|
};
|
|
2306
|
-
type
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
preferLocalDev?: boolean;
|
|
2311
|
-
style?: MapLibreStyle;
|
|
2312
|
-
styleBaseUrl?: string;
|
|
2313
|
-
styleUrl?: string;
|
|
2314
|
-
themes?: TileflowProjectThemes;
|
|
2315
|
-
tileBaseUrl?: string;
|
|
2573
|
+
type TileflowIconMappingChange = {
|
|
2574
|
+
after?: string;
|
|
2575
|
+
before?: string;
|
|
2576
|
+
key: string;
|
|
2316
2577
|
};
|
|
2317
|
-
type
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
map?: string;
|
|
2322
|
-
style?: unknown;
|
|
2323
|
-
styleBaseUrl?: string;
|
|
2324
|
-
styleUrl?: string;
|
|
2578
|
+
type TileflowIconMappingDiff = {
|
|
2579
|
+
added: TileflowIconMappingChange[];
|
|
2580
|
+
changed: TileflowIconMappingChange[];
|
|
2581
|
+
removed: TileflowIconMappingChange[];
|
|
2325
2582
|
};
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
styleId?: string;
|
|
2338
|
-
}): void;
|
|
2339
|
-
declare function getTileflowAnalyticsApiUrl(analytics: TileflowAnalytics): string;
|
|
2340
|
-
declare function mergeTileflowAnalytics(userAnalytics: TileflowAnalytics | undefined, runtimeAnalytics: TileflowAnalytics | undefined): TileflowAnalytics | undefined;
|
|
2341
|
-
declare function isTileflowLocalDevHost(): boolean;
|
|
2342
|
-
declare function resolveTileflowMapMode(options: TileflowMapModeOptions): TileflowMapMode;
|
|
2343
|
-
declare function loadTileflowManifest(url: string): Promise<TileflowRuntimeManifest | null>;
|
|
2344
|
-
declare function resolveTileflowManifestMap(manifest: TileflowRuntimeManifest, mapName: string): TileflowRuntimeManifestMap | null;
|
|
2345
|
-
declare function resolveTileflowStaticImageUrl(input: {
|
|
2346
|
-
center: [number, number];
|
|
2347
|
-
imageSize: {
|
|
2348
|
-
height: number;
|
|
2349
|
-
width: number;
|
|
2350
|
-
} | null;
|
|
2351
|
-
manifestMap: TileflowRuntimeManifestMap | null;
|
|
2352
|
-
zoom: number;
|
|
2353
|
-
}): string | undefined;
|
|
2354
|
-
declare function normalizeTileflowStaticImageSize(input: {
|
|
2355
|
-
height: number;
|
|
2356
|
-
width: number;
|
|
2357
|
-
}): {
|
|
2358
|
-
height: number;
|
|
2359
|
-
width: number;
|
|
2583
|
+
type TileflowIconReferenceAnalysis = {
|
|
2584
|
+
analysisComplete: boolean;
|
|
2585
|
+
dangling: Array<{
|
|
2586
|
+
iconName: string;
|
|
2587
|
+
kind: 'mapping' | 'style-override-literal';
|
|
2588
|
+
path: string;
|
|
2589
|
+
}>;
|
|
2590
|
+
unanalyzable: Array<{
|
|
2591
|
+
kind: 'style-override-expression';
|
|
2592
|
+
path: string;
|
|
2593
|
+
}>;
|
|
2360
2594
|
};
|
|
2361
|
-
declare function
|
|
2595
|
+
declare function diffTileflowIconPackageManifests(before: TileflowIconPackageManifest | null, after: TileflowIconPackageManifest | null): TileflowIconManifestDiff;
|
|
2596
|
+
declare function diffTileflowIconMappings(before: Record<string, string> | null, after: Record<string, string> | null): TileflowIconMappingDiff;
|
|
2597
|
+
declare function inspectTileflowIconReferences(project: TileflowProjectConfig, mapName: string, availableIconNames: readonly string[]): TileflowIconReferenceAnalysis;
|
|
2598
|
+
declare function resolveTileflowIconMapping(project: TileflowProjectConfig, mapName: string): Record<string, string>;
|
|
2362
2599
|
|
|
2363
|
-
export {
|
|
2600
|
+
export { TileflowConfig, type TileflowIconManifestDiff, type TileflowIconMappingChange, type TileflowIconMappingDiff, type TileflowIconPackageFileName, type TileflowIconPackageManifest, type TileflowIconReferenceAnalysis, TileflowLabelsModuleConfig, TileflowLabelsModuleOptions, TileflowOsmBasemapConfig, TileflowOsmBasemapOptions, TileflowPoiModuleConfig, TileflowPoiModuleOptions, TileflowProjectConfig, type TileflowRenderedIconManifestEntry, TileflowRoadsModuleConfig, TileflowRoadsModuleOptions, TileflowStyleOverrideModuleConfig, TileflowStyleOverrideOptions, ValidationResult, compareCodeUnits, configSchema, defineTileflow, diffTileflowIconMappings, diffTileflowIconPackageManifests, hashTileflowIconPackageManifest, hashTileflowRenderedIconPixels, inspectTileflowIconReferences, labels, osm, parseTileflowMap, parseTileflowProject, poi, resolveTileflowIconMapping, roads, serializeCanonicalJson, serializeTileflowIconPackageManifest, sha256Hex, styleOverride, tileflowHostedAlphaCompatibility, tileflowHostedIconIdPattern, tileflowHostedIconIdSchema, tileflowIconPackageContentHashSchema, tileflowIconPackageFileNames, tileflowIconPackageLabelSchema, tileflowIconPackageLimits, tileflowIconPackageManifestSchema, tileflowMapSchema, tileflowProjectSchema, tileflowRenderedIconManifestEntrySchema, tileflowThemeSchema, validateConfig, validateTileflowConfig };
|