@tileflow/core 0.1.0-alpha.11 → 0.1.0-alpha.13
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 +36 -14
- package/dist/index.d.ts +70 -113
- package/dist/index.js +425 -184
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Typed Tileflow config helpers and the MapLibre style compiler.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
|
-
import {defineTileflow, labels, osm, poi} from '@tileflow/core';
|
|
6
|
+
import {defineTileflow, labels, osm, poi, roads} from '@tileflow/core';
|
|
7
7
|
|
|
8
8
|
export default defineTileflow({
|
|
9
9
|
icons: {
|
|
@@ -51,8 +51,9 @@ export default defineTileflow({
|
|
|
51
51
|
icons: 'brand',
|
|
52
52
|
theme: 'light',
|
|
53
53
|
modules: [
|
|
54
|
-
labels({roads: '
|
|
54
|
+
labels({roads: 'major'}),
|
|
55
55
|
poi({categories: ['food', 'coffee', 'culture', 'transit'], icons: 'essential'}),
|
|
56
|
+
roads({detail: 'streets', hierarchy: 'clear', outline: 'subtle', weight: 'regular'}),
|
|
56
57
|
],
|
|
57
58
|
layers: {
|
|
58
59
|
'highway-primary': {
|
|
@@ -78,7 +79,7 @@ Tileflow keeps these levels separate:
|
|
|
78
79
|
- `theme.colors` contains human-scale base tokens such as `water`, `park`, `road`, `roadMajor`, `roadCasing`, `text`, and `textHalo`.
|
|
79
80
|
- `theme.modules.<name>` contains advanced, module-specific tokens. These are granular: setting `theme.modules.roads.rail` does not recolor primary roads.
|
|
80
81
|
- `maps.<name>.icons` can point at a reusable root icon set, a hosted MapLibre sprite URL, or a local icon folder for Vite/build output.
|
|
81
|
-
- `maps.<name>.modules` enables semantic behavior such as `labels()`, `poi()`, and `roads()`. Road colors remain in `theme.modules.roads`; `roads()` controls detail, hierarchy, weight,
|
|
82
|
+
- `maps.<name>.modules` enables semantic behavior such as `labels()`, `poi()`, and `roads()`. Road colors remain in `theme.modules.roads`; `roads()` controls detail, hierarchy, weight, outline, and optional transport extras.
|
|
82
83
|
- `maps.<name>.renderer` can be `auto`, `osm-bright`, or `generated`. `auto` preserves the default template when compatible; `generated` always uses Tileflow's generated layers; `osm-bright` throws if the map config cannot be rendered with the template.
|
|
83
84
|
- `layers` is the raw MapLibre escape hatch for exact layer patches.
|
|
84
85
|
|
|
@@ -86,15 +87,14 @@ Missing colors preserve the basemap default. Legacy aliases such as `accent`, `c
|
|
|
86
87
|
|
|
87
88
|
## Roads module
|
|
88
89
|
|
|
89
|
-
|
|
90
|
+
Control each independent road-network decision directly:
|
|
90
91
|
|
|
91
92
|
```ts
|
|
92
93
|
roads({
|
|
93
|
-
preset: 'navigation',
|
|
94
94
|
detail: 'streets',
|
|
95
95
|
hierarchy: 'strong',
|
|
96
96
|
weight: 'regular',
|
|
97
|
-
|
|
97
|
+
outline: 'strong',
|
|
98
98
|
extras: {
|
|
99
99
|
paths: false,
|
|
100
100
|
rail: false,
|
|
@@ -103,16 +103,38 @@ roads({
|
|
|
103
103
|
});
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
| `detailed` | `all` | `clear` | `regular` | `strong` | all on |
|
|
106
|
+
`detail` is progressive: `none` hides roads; `highways` shows motorway and trunk roads;
|
|
107
|
+
`major` adds primary, secondary, and tertiary roads; `streets` adds minor streets; and `all`
|
|
108
|
+
adds service roads and tracks. `hierarchy` accepts `subtle`, `clear`, or `strong`; `weight`
|
|
109
|
+
accepts `thin`, `regular`, or `bold`; and `outline` accepts `none`, `subtle`, or `strong`.
|
|
110
|
+
`extras.paths`, `extras.rail`, and `extras.ferry` are independent and default to `false`.
|
|
112
111
|
|
|
113
|
-
`
|
|
112
|
+
Without options, `roads()` uses `detail: 'streets'`, `hierarchy: 'clear'`,
|
|
113
|
+
`weight: 'regular'`, `outline: 'subtle'`, and all extras disabled. Named visual recipes belong
|
|
114
|
+
in examples rather than the runtime API, so the resolved behavior is always visible in config.
|
|
114
115
|
|
|
115
|
-
Colors never belong in `roads()`. Put common colors in `theme.colors` and granular road colors in `theme.modules.roads`. Road-label
|
|
116
|
+
Colors never belong in `roads()`. Put common colors in `theme.colors` and granular road colors in `theme.modules.roads`. Road-label detail remains a `labels({roads: ...})` concern.
|
|
117
|
+
|
|
118
|
+
## Labels module
|
|
119
|
+
|
|
120
|
+
Control label families independently without a preset:
|
|
121
|
+
|
|
122
|
+
```ts
|
|
123
|
+
labels({
|
|
124
|
+
language: 'auto',
|
|
125
|
+
places: 'major',
|
|
126
|
+
roads: 'major',
|
|
127
|
+
water: 'major',
|
|
128
|
+
});
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
`places`, `roads`, and `water` accept `none`, `major`, or `all`. Each value is progressive:
|
|
132
|
+
`major` keeps the important labels for orientation and `all` adds local or secondary labels at
|
|
133
|
+
their natural zoom. Road labels are automatically limited to road classes currently visible through
|
|
134
|
+
`roads({detail})`. `language` accepts `auto`, `local`, or a language code such as `en` or `es`.
|
|
135
|
+
|
|
136
|
+
Without options, `labels()` uses `language: 'auto'` and `major` for all three label families.
|
|
137
|
+
Label colors remain in `theme.modules.labels`; font family and weight remain in `typography`.
|
|
116
138
|
|
|
117
139
|
## Public API
|
|
118
140
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ type TileflowDensity = 'clean' | 'balanced' | 'dense';
|
|
|
4
4
|
type TileflowRoads = 'hidden' | 'soft' | 'standard' | 'detailed';
|
|
5
5
|
type TileflowLabels = 'none' | 'essential' | 'balanced' | 'full';
|
|
6
6
|
type TileflowPoi = 'none' | 'minimal' | 'balanced' | 'full';
|
|
7
|
-
type
|
|
7
|
+
type TileflowLabelDetail = 'none' | 'major' | 'all';
|
|
8
8
|
type TileflowLabelLanguage = 'auto' | 'local' | 'en' | (string & {});
|
|
9
9
|
type TileflowPoiCategory = 'food' | 'coffee' | 'culture' | 'transit' | 'shopping' | 'lodging' | 'health' | 'education' | 'services' | (string & {});
|
|
10
10
|
type TileflowPoiIcons = boolean | 'essential' | 'full';
|
|
@@ -151,7 +151,10 @@ type TileflowSourceLayers = {
|
|
|
151
151
|
landuse?: string;
|
|
152
152
|
park?: string;
|
|
153
153
|
water?: string;
|
|
154
|
+
waterName?: string;
|
|
155
|
+
waterway?: string;
|
|
154
156
|
road?: string;
|
|
157
|
+
roadName?: string;
|
|
155
158
|
building?: string;
|
|
156
159
|
boundary?: string;
|
|
157
160
|
place?: string;
|
|
@@ -191,13 +194,10 @@ type TileflowOsmBasemapConfig = {
|
|
|
191
194
|
};
|
|
192
195
|
type TileflowBasemapConfig = TileflowOsmBasemapConfig;
|
|
193
196
|
type TileflowOsmBasemapOptions = Omit<TileflowOsmBasemapConfig, 'type'>;
|
|
194
|
-
type
|
|
195
|
-
/** @deprecated Use "standard". */
|
|
196
|
-
| 'modern';
|
|
197
|
-
type TileflowRoadDetail = 'none' | 'major' | 'streets' | 'all';
|
|
197
|
+
type TileflowRoadDetail = 'none' | 'highways' | 'major' | 'streets' | 'all';
|
|
198
198
|
type TileflowRoadHierarchy = 'subtle' | 'clear' | 'strong';
|
|
199
199
|
type TileflowRoadWeight = 'thin' | 'regular' | 'bold';
|
|
200
|
-
type
|
|
200
|
+
type TileflowRoadOutline = 'none' | 'subtle' | 'strong';
|
|
201
201
|
type TileflowRoadExtras = {
|
|
202
202
|
ferry?: boolean;
|
|
203
203
|
paths?: boolean;
|
|
@@ -205,23 +205,19 @@ type TileflowRoadExtras = {
|
|
|
205
205
|
};
|
|
206
206
|
type TileflowRoadsModuleConfig = {
|
|
207
207
|
type: 'roads';
|
|
208
|
-
casing?: TileflowRoadCasing;
|
|
209
208
|
detail?: TileflowRoadDetail;
|
|
210
|
-
/** @deprecated Use hierarchy. */
|
|
211
|
-
density?: TileflowDensity;
|
|
212
209
|
extras?: TileflowRoadExtras;
|
|
213
210
|
hierarchy?: TileflowRoadHierarchy;
|
|
214
|
-
|
|
211
|
+
outline?: TileflowRoadOutline;
|
|
215
212
|
weight?: TileflowRoadWeight;
|
|
216
213
|
};
|
|
217
214
|
type TileflowRoadsModuleOptions = Omit<TileflowRoadsModuleConfig, 'type'>;
|
|
218
215
|
type TileflowLabelsModuleConfig = {
|
|
219
216
|
type: 'labels';
|
|
220
217
|
language?: TileflowLabelLanguage;
|
|
221
|
-
places?:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
water?: TileflowLabelDensity;
|
|
218
|
+
places?: TileflowLabelDetail;
|
|
219
|
+
roads?: TileflowLabelDetail;
|
|
220
|
+
water?: TileflowLabelDetail;
|
|
225
221
|
};
|
|
226
222
|
type TileflowLabelsModuleOptions = Omit<TileflowLabelsModuleConfig, 'type'>;
|
|
227
223
|
type TileflowPoiModuleConfig = {
|
|
@@ -549,7 +545,10 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
549
545
|
landuse: z.ZodOptional<z.ZodString>;
|
|
550
546
|
park: z.ZodOptional<z.ZodString>;
|
|
551
547
|
water: z.ZodOptional<z.ZodString>;
|
|
548
|
+
waterName: z.ZodOptional<z.ZodString>;
|
|
549
|
+
waterway: z.ZodOptional<z.ZodString>;
|
|
552
550
|
road: z.ZodOptional<z.ZodString>;
|
|
551
|
+
roadName: z.ZodOptional<z.ZodString>;
|
|
553
552
|
building: z.ZodOptional<z.ZodString>;
|
|
554
553
|
boundary: z.ZodOptional<z.ZodString>;
|
|
555
554
|
place: z.ZodOptional<z.ZodString>;
|
|
@@ -758,28 +757,19 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
758
757
|
type: z.ZodLiteral<"labels">;
|
|
759
758
|
language: z.ZodOptional<z.ZodString>;
|
|
760
759
|
places: z.ZodOptional<z.ZodEnum<{
|
|
761
|
-
balanced: "balanced";
|
|
762
|
-
none: "none";
|
|
763
|
-
minimal: "minimal";
|
|
764
|
-
detailed: "detailed";
|
|
765
|
-
}>>;
|
|
766
|
-
preset: z.ZodOptional<z.ZodEnum<{
|
|
767
|
-
balanced: "balanced";
|
|
768
760
|
none: "none";
|
|
769
|
-
|
|
770
|
-
|
|
761
|
+
major: "major";
|
|
762
|
+
all: "all";
|
|
771
763
|
}>>;
|
|
772
764
|
roads: z.ZodOptional<z.ZodEnum<{
|
|
773
|
-
balanced: "balanced";
|
|
774
765
|
none: "none";
|
|
775
|
-
|
|
776
|
-
|
|
766
|
+
major: "major";
|
|
767
|
+
all: "all";
|
|
777
768
|
}>>;
|
|
778
769
|
water: z.ZodOptional<z.ZodEnum<{
|
|
779
|
-
balanced: "balanced";
|
|
780
770
|
none: "none";
|
|
781
|
-
|
|
782
|
-
|
|
771
|
+
major: "major";
|
|
772
|
+
all: "all";
|
|
783
773
|
}>>;
|
|
784
774
|
}, z.core.$strict>, z.ZodObject<{
|
|
785
775
|
type: z.ZodLiteral<"poi">;
|
|
@@ -803,22 +793,13 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
803
793
|
}>>;
|
|
804
794
|
}, z.core.$strict>, z.ZodObject<{
|
|
805
795
|
type: z.ZodLiteral<"roads">;
|
|
806
|
-
casing: z.ZodOptional<z.ZodEnum<{
|
|
807
|
-
none: "none";
|
|
808
|
-
subtle: "subtle";
|
|
809
|
-
strong: "strong";
|
|
810
|
-
}>>;
|
|
811
796
|
detail: z.ZodOptional<z.ZodEnum<{
|
|
812
797
|
none: "none";
|
|
813
798
|
major: "major";
|
|
799
|
+
highways: "highways";
|
|
814
800
|
streets: "streets";
|
|
815
801
|
all: "all";
|
|
816
802
|
}>>;
|
|
817
|
-
density: z.ZodOptional<z.ZodEnum<{
|
|
818
|
-
clean: "clean";
|
|
819
|
-
balanced: "balanced";
|
|
820
|
-
dense: "dense";
|
|
821
|
-
}>>;
|
|
822
803
|
extras: z.ZodOptional<z.ZodObject<{
|
|
823
804
|
ferry: z.ZodOptional<z.ZodBoolean>;
|
|
824
805
|
paths: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -826,15 +807,13 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
826
807
|
}, z.core.$strict>>;
|
|
827
808
|
hierarchy: z.ZodOptional<z.ZodEnum<{
|
|
828
809
|
subtle: "subtle";
|
|
829
|
-
strong: "strong";
|
|
830
810
|
clear: "clear";
|
|
811
|
+
strong: "strong";
|
|
831
812
|
}>>;
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
navigation: "navigation";
|
|
837
|
-
modern: "modern";
|
|
813
|
+
outline: z.ZodOptional<z.ZodEnum<{
|
|
814
|
+
none: "none";
|
|
815
|
+
subtle: "subtle";
|
|
816
|
+
strong: "strong";
|
|
838
817
|
}>>;
|
|
839
818
|
weight: z.ZodOptional<z.ZodEnum<{
|
|
840
819
|
regular: "regular";
|
|
@@ -1032,7 +1011,10 @@ declare const tileflowMapSchema: z.ZodObject<{
|
|
|
1032
1011
|
landuse: z.ZodOptional<z.ZodString>;
|
|
1033
1012
|
park: z.ZodOptional<z.ZodString>;
|
|
1034
1013
|
water: z.ZodOptional<z.ZodString>;
|
|
1014
|
+
waterName: z.ZodOptional<z.ZodString>;
|
|
1015
|
+
waterway: z.ZodOptional<z.ZodString>;
|
|
1035
1016
|
road: z.ZodOptional<z.ZodString>;
|
|
1017
|
+
roadName: z.ZodOptional<z.ZodString>;
|
|
1036
1018
|
building: z.ZodOptional<z.ZodString>;
|
|
1037
1019
|
boundary: z.ZodOptional<z.ZodString>;
|
|
1038
1020
|
place: z.ZodOptional<z.ZodString>;
|
|
@@ -1056,7 +1038,10 @@ declare const configSchema: z.ZodObject<{
|
|
|
1056
1038
|
landuse: z.ZodOptional<z.ZodString>;
|
|
1057
1039
|
park: z.ZodOptional<z.ZodString>;
|
|
1058
1040
|
water: z.ZodOptional<z.ZodString>;
|
|
1041
|
+
waterName: z.ZodOptional<z.ZodString>;
|
|
1042
|
+
waterway: z.ZodOptional<z.ZodString>;
|
|
1059
1043
|
road: z.ZodOptional<z.ZodString>;
|
|
1044
|
+
roadName: z.ZodOptional<z.ZodString>;
|
|
1060
1045
|
building: z.ZodOptional<z.ZodString>;
|
|
1061
1046
|
boundary: z.ZodOptional<z.ZodString>;
|
|
1062
1047
|
place: z.ZodOptional<z.ZodString>;
|
|
@@ -1265,28 +1250,19 @@ declare const configSchema: z.ZodObject<{
|
|
|
1265
1250
|
type: z.ZodLiteral<"labels">;
|
|
1266
1251
|
language: z.ZodOptional<z.ZodString>;
|
|
1267
1252
|
places: z.ZodOptional<z.ZodEnum<{
|
|
1268
|
-
balanced: "balanced";
|
|
1269
|
-
none: "none";
|
|
1270
|
-
minimal: "minimal";
|
|
1271
|
-
detailed: "detailed";
|
|
1272
|
-
}>>;
|
|
1273
|
-
preset: z.ZodOptional<z.ZodEnum<{
|
|
1274
|
-
balanced: "balanced";
|
|
1275
1253
|
none: "none";
|
|
1276
|
-
|
|
1277
|
-
|
|
1254
|
+
major: "major";
|
|
1255
|
+
all: "all";
|
|
1278
1256
|
}>>;
|
|
1279
1257
|
roads: z.ZodOptional<z.ZodEnum<{
|
|
1280
|
-
balanced: "balanced";
|
|
1281
1258
|
none: "none";
|
|
1282
|
-
|
|
1283
|
-
|
|
1259
|
+
major: "major";
|
|
1260
|
+
all: "all";
|
|
1284
1261
|
}>>;
|
|
1285
1262
|
water: z.ZodOptional<z.ZodEnum<{
|
|
1286
|
-
balanced: "balanced";
|
|
1287
1263
|
none: "none";
|
|
1288
|
-
|
|
1289
|
-
|
|
1264
|
+
major: "major";
|
|
1265
|
+
all: "all";
|
|
1290
1266
|
}>>;
|
|
1291
1267
|
}, z.core.$strict>, z.ZodObject<{
|
|
1292
1268
|
type: z.ZodLiteral<"poi">;
|
|
@@ -1310,22 +1286,13 @@ declare const configSchema: z.ZodObject<{
|
|
|
1310
1286
|
}>>;
|
|
1311
1287
|
}, z.core.$strict>, z.ZodObject<{
|
|
1312
1288
|
type: z.ZodLiteral<"roads">;
|
|
1313
|
-
casing: z.ZodOptional<z.ZodEnum<{
|
|
1314
|
-
none: "none";
|
|
1315
|
-
subtle: "subtle";
|
|
1316
|
-
strong: "strong";
|
|
1317
|
-
}>>;
|
|
1318
1289
|
detail: z.ZodOptional<z.ZodEnum<{
|
|
1319
1290
|
none: "none";
|
|
1320
1291
|
major: "major";
|
|
1292
|
+
highways: "highways";
|
|
1321
1293
|
streets: "streets";
|
|
1322
1294
|
all: "all";
|
|
1323
1295
|
}>>;
|
|
1324
|
-
density: z.ZodOptional<z.ZodEnum<{
|
|
1325
|
-
clean: "clean";
|
|
1326
|
-
balanced: "balanced";
|
|
1327
|
-
dense: "dense";
|
|
1328
|
-
}>>;
|
|
1329
1296
|
extras: z.ZodOptional<z.ZodObject<{
|
|
1330
1297
|
ferry: z.ZodOptional<z.ZodBoolean>;
|
|
1331
1298
|
paths: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1333,15 +1300,13 @@ declare const configSchema: z.ZodObject<{
|
|
|
1333
1300
|
}, z.core.$strict>>;
|
|
1334
1301
|
hierarchy: z.ZodOptional<z.ZodEnum<{
|
|
1335
1302
|
subtle: "subtle";
|
|
1336
|
-
strong: "strong";
|
|
1337
1303
|
clear: "clear";
|
|
1304
|
+
strong: "strong";
|
|
1338
1305
|
}>>;
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
navigation: "navigation";
|
|
1344
|
-
modern: "modern";
|
|
1306
|
+
outline: z.ZodOptional<z.ZodEnum<{
|
|
1307
|
+
none: "none";
|
|
1308
|
+
subtle: "subtle";
|
|
1309
|
+
strong: "strong";
|
|
1345
1310
|
}>>;
|
|
1346
1311
|
weight: z.ZodOptional<z.ZodEnum<{
|
|
1347
1312
|
regular: "regular";
|
|
@@ -1539,7 +1504,10 @@ declare const configSchema: z.ZodObject<{
|
|
|
1539
1504
|
landuse: z.ZodOptional<z.ZodString>;
|
|
1540
1505
|
park: z.ZodOptional<z.ZodString>;
|
|
1541
1506
|
water: z.ZodOptional<z.ZodString>;
|
|
1507
|
+
waterName: z.ZodOptional<z.ZodString>;
|
|
1508
|
+
waterway: z.ZodOptional<z.ZodString>;
|
|
1542
1509
|
road: z.ZodOptional<z.ZodString>;
|
|
1510
|
+
roadName: z.ZodOptional<z.ZodString>;
|
|
1543
1511
|
building: z.ZodOptional<z.ZodString>;
|
|
1544
1512
|
boundary: z.ZodOptional<z.ZodString>;
|
|
1545
1513
|
place: z.ZodOptional<z.ZodString>;
|
|
@@ -1756,7 +1724,10 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1756
1724
|
landuse: z.ZodOptional<z.ZodString>;
|
|
1757
1725
|
park: z.ZodOptional<z.ZodString>;
|
|
1758
1726
|
water: z.ZodOptional<z.ZodString>;
|
|
1727
|
+
waterName: z.ZodOptional<z.ZodString>;
|
|
1728
|
+
waterway: z.ZodOptional<z.ZodString>;
|
|
1759
1729
|
road: z.ZodOptional<z.ZodString>;
|
|
1730
|
+
roadName: z.ZodOptional<z.ZodString>;
|
|
1760
1731
|
building: z.ZodOptional<z.ZodString>;
|
|
1761
1732
|
boundary: z.ZodOptional<z.ZodString>;
|
|
1762
1733
|
place: z.ZodOptional<z.ZodString>;
|
|
@@ -1773,7 +1744,10 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1773
1744
|
landuse: z.ZodOptional<z.ZodString>;
|
|
1774
1745
|
park: z.ZodOptional<z.ZodString>;
|
|
1775
1746
|
water: z.ZodOptional<z.ZodString>;
|
|
1747
|
+
waterName: z.ZodOptional<z.ZodString>;
|
|
1748
|
+
waterway: z.ZodOptional<z.ZodString>;
|
|
1776
1749
|
road: z.ZodOptional<z.ZodString>;
|
|
1750
|
+
roadName: z.ZodOptional<z.ZodString>;
|
|
1777
1751
|
building: z.ZodOptional<z.ZodString>;
|
|
1778
1752
|
boundary: z.ZodOptional<z.ZodString>;
|
|
1779
1753
|
place: z.ZodOptional<z.ZodString>;
|
|
@@ -1982,28 +1956,19 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
1982
1956
|
type: z.ZodLiteral<"labels">;
|
|
1983
1957
|
language: z.ZodOptional<z.ZodString>;
|
|
1984
1958
|
places: z.ZodOptional<z.ZodEnum<{
|
|
1985
|
-
balanced: "balanced";
|
|
1986
|
-
none: "none";
|
|
1987
|
-
minimal: "minimal";
|
|
1988
|
-
detailed: "detailed";
|
|
1989
|
-
}>>;
|
|
1990
|
-
preset: z.ZodOptional<z.ZodEnum<{
|
|
1991
|
-
balanced: "balanced";
|
|
1992
1959
|
none: "none";
|
|
1993
|
-
|
|
1994
|
-
|
|
1960
|
+
major: "major";
|
|
1961
|
+
all: "all";
|
|
1995
1962
|
}>>;
|
|
1996
1963
|
roads: z.ZodOptional<z.ZodEnum<{
|
|
1997
|
-
balanced: "balanced";
|
|
1998
1964
|
none: "none";
|
|
1999
|
-
|
|
2000
|
-
|
|
1965
|
+
major: "major";
|
|
1966
|
+
all: "all";
|
|
2001
1967
|
}>>;
|
|
2002
1968
|
water: z.ZodOptional<z.ZodEnum<{
|
|
2003
|
-
balanced: "balanced";
|
|
2004
1969
|
none: "none";
|
|
2005
|
-
|
|
2006
|
-
|
|
1970
|
+
major: "major";
|
|
1971
|
+
all: "all";
|
|
2007
1972
|
}>>;
|
|
2008
1973
|
}, z.core.$strict>, z.ZodObject<{
|
|
2009
1974
|
type: z.ZodLiteral<"poi">;
|
|
@@ -2027,22 +1992,13 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
2027
1992
|
}>>;
|
|
2028
1993
|
}, z.core.$strict>, z.ZodObject<{
|
|
2029
1994
|
type: z.ZodLiteral<"roads">;
|
|
2030
|
-
casing: z.ZodOptional<z.ZodEnum<{
|
|
2031
|
-
none: "none";
|
|
2032
|
-
subtle: "subtle";
|
|
2033
|
-
strong: "strong";
|
|
2034
|
-
}>>;
|
|
2035
1995
|
detail: z.ZodOptional<z.ZodEnum<{
|
|
2036
1996
|
none: "none";
|
|
2037
1997
|
major: "major";
|
|
1998
|
+
highways: "highways";
|
|
2038
1999
|
streets: "streets";
|
|
2039
2000
|
all: "all";
|
|
2040
2001
|
}>>;
|
|
2041
|
-
density: z.ZodOptional<z.ZodEnum<{
|
|
2042
|
-
clean: "clean";
|
|
2043
|
-
balanced: "balanced";
|
|
2044
|
-
dense: "dense";
|
|
2045
|
-
}>>;
|
|
2046
2002
|
extras: z.ZodOptional<z.ZodObject<{
|
|
2047
2003
|
ferry: z.ZodOptional<z.ZodBoolean>;
|
|
2048
2004
|
paths: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2050,15 +2006,13 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
2050
2006
|
}, z.core.$strict>>;
|
|
2051
2007
|
hierarchy: z.ZodOptional<z.ZodEnum<{
|
|
2052
2008
|
subtle: "subtle";
|
|
2053
|
-
strong: "strong";
|
|
2054
2009
|
clear: "clear";
|
|
2010
|
+
strong: "strong";
|
|
2055
2011
|
}>>;
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
navigation: "navigation";
|
|
2061
|
-
modern: "modern";
|
|
2012
|
+
outline: z.ZodOptional<z.ZodEnum<{
|
|
2013
|
+
none: "none";
|
|
2014
|
+
subtle: "subtle";
|
|
2015
|
+
strong: "strong";
|
|
2062
2016
|
}>>;
|
|
2063
2017
|
weight: z.ZodOptional<z.ZodEnum<{
|
|
2064
2018
|
regular: "regular";
|
|
@@ -2256,7 +2210,10 @@ declare const tileflowProjectSchema: z.ZodObject<{
|
|
|
2256
2210
|
landuse: z.ZodOptional<z.ZodString>;
|
|
2257
2211
|
park: z.ZodOptional<z.ZodString>;
|
|
2258
2212
|
water: z.ZodOptional<z.ZodString>;
|
|
2213
|
+
waterName: z.ZodOptional<z.ZodString>;
|
|
2214
|
+
waterway: z.ZodOptional<z.ZodString>;
|
|
2259
2215
|
road: z.ZodOptional<z.ZodString>;
|
|
2216
|
+
roadName: z.ZodOptional<z.ZodString>;
|
|
2260
2217
|
building: z.ZodOptional<z.ZodString>;
|
|
2261
2218
|
boundary: z.ZodOptional<z.ZodString>;
|
|
2262
2219
|
place: z.ZodOptional<z.ZodString>;
|
|
@@ -2280,12 +2237,12 @@ declare function defineTileflow<const TConfig extends TileflowProjectConfig>(con
|
|
|
2280
2237
|
|
|
2281
2238
|
declare function osm(options?: TileflowOsmBasemapOptions): TileflowOsmBasemapConfig;
|
|
2282
2239
|
|
|
2240
|
+
declare function roads(options?: TileflowRoadsModuleOptions): TileflowRoadsModuleConfig;
|
|
2241
|
+
|
|
2283
2242
|
declare function labels(options?: TileflowLabelsModuleOptions): TileflowLabelsModuleConfig;
|
|
2284
2243
|
|
|
2285
2244
|
declare function poi(options?: TileflowPoiModuleOptions): TileflowPoiModuleConfig;
|
|
2286
2245
|
|
|
2287
|
-
declare function roads(options?: TileflowRoadsModuleOptions): TileflowRoadsModuleConfig;
|
|
2288
|
-
|
|
2289
2246
|
declare function styleOverride(options?: TileflowStyleOverrideOptions): TileflowStyleOverrideModuleConfig;
|
|
2290
2247
|
|
|
2291
2248
|
declare const defaultTileflowManifestUrl = "/tileflow/manifest.json";
|
|
@@ -2396,4 +2353,4 @@ declare function normalizeTileflowStaticImageSize(input: {
|
|
|
2396
2353
|
};
|
|
2397
2354
|
declare function inferTileflowAnalyticsFromStyleUrl(styleUrl: string): TileflowAnalytics | undefined;
|
|
2398
2355
|
|
|
2399
|
-
export { type MapLibreSprite, type MapLibreStyle, type TileflowAdvancedColorConfig, type TileflowAnalytics, type TileflowBaseColors, type TileflowBasemapConfig, type TileflowBoundaryColorConfig, type TileflowBuildingColorConfig, type TileflowBuildings, type TileflowColor, type TileflowColorConfig, type TileflowColors, type TileflowConfig, type TileflowDensity, type TileflowFontWeight, type TileflowFonts, type TileflowHydroColorConfig, type TileflowIconSet, type TileflowIconSetConfig, type TileflowLabelColorConfig, type
|
|
2356
|
+
export { type MapLibreSprite, type MapLibreStyle, type TileflowAdvancedColorConfig, type TileflowAnalytics, type TileflowBaseColors, type TileflowBasemapConfig, type TileflowBoundaryColorConfig, type TileflowBuildingColorConfig, type TileflowBuildings, type TileflowColor, type TileflowColorConfig, type TileflowColors, type TileflowConfig, type TileflowDensity, type TileflowFontWeight, type TileflowFonts, type TileflowHydroColorConfig, type TileflowIconSet, type TileflowIconSetConfig, type TileflowLabelColorConfig, type TileflowLabelDetail, type TileflowLabelLanguage, type TileflowLabels, type TileflowLabelsModuleConfig, type TileflowLabelsModuleOptions, type TileflowLandcoverColorConfig, type TileflowLanduseColorConfig, type TileflowManifest, type TileflowManifestLoadOptions, type TileflowMapConfig, type TileflowMapMarker, type TileflowMapMode, type TileflowMapModeOptions, type TileflowModuleConfig, type TileflowOsmBasemapConfig, type TileflowOsmBasemapOptions, type TileflowPoi, type TileflowPoiCategory, type TileflowPoiColorConfig, type TileflowPoiIcons, type TileflowPoiLabels, type TileflowPoiModuleConfig, type TileflowPoiModuleOptions, type TileflowProjectConfig, type TileflowProjectIconSets, type TileflowProjectThemes, type TileflowRenderer, type TileflowRoadColorConfig, type TileflowRoadDetail, type TileflowRoadExtras, type TileflowRoadHierarchy, type TileflowRoadOutline, type TileflowRoadWeight, type TileflowRoads, type TileflowRoadsModuleConfig, type TileflowRoadsModuleOptions, type TileflowRuntimeManifest, type TileflowRuntimeManifestMap, type TileflowRuntimeManifestMapEntry, type TileflowRuntimeStyle, type TileflowRuntimeStyleOptions, type TileflowSourceLayers, type TileflowStyleLayerOverride, type TileflowStyleOptions, type TileflowStyleOverrideModuleConfig, type TileflowStyleOverrideOptions, type TileflowTerrain, type TileflowTerrainConfig, type TileflowTerrainEncoding, type TileflowTerrainMode, type TileflowTheme, type TileflowThemeConfig, type TileflowThemeMode, type TileflowThemeModulesConfig, type TileflowThemeName, type TileflowTiles, type TileflowTilesetConfig, type TileflowTypography, type TileflowViewConfig, type ValidationMessage, type ValidationResult, configSchema, createManifest, createStyle, createStyleFromProject, createTileflowSessionId, defaultTileflowManifestUrl, defaultTileflowStyleBaseUrl, defineTileflow, getDefaultColors, getDefaultTileflowStyleBaseUrl, getTileflowAnalyticsApiUrl, inferTileflowAnalyticsFromStyleUrl, isTileflowLocalDevHost, labels, loadTileflowManifest, mergeTileflowAnalytics, normalizeTileflowStaticImageSize, normalizeTileflowUrl, osm, parseTileflowMap, parseTileflowProject, poi, resolveTileflowAnalyticsRequestUrl, resolveTileflowManifestMap, resolveTileflowMapMode, resolveTileflowRuntimeStyle, resolveTileflowStaticImageUrl, resolveTileflowStyleUrl, roads, shouldLoadTileflowManifest, startTileflowSession, styleOverride, tileflowMapSchema, tileflowProjectSchema, tileflowThemeSchema, validateConfig, validateTileflowConfig };
|