@tileflow/core 0.1.0-alpha.13 → 0.1.0-alpha.14

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 CHANGED
@@ -128,10 +128,17 @@ labels({
128
128
  });
129
129
  ```
130
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`.
131
+ `places` and `water` accept `none`, `major`, or `all`. Road labels follow the road hierarchy and
132
+ accept `none`, `highways`, `major`, `streets`, or `all`: `highways` includes motorway and trunk
133
+ labels, `major` adds primary through tertiary, `streets` adds minor streets, and `all` adds service
134
+ roads and tracks. Path labels are eligible at `all` only when path geometry is visible; when
135
+ `roads()` is present, enable it with `roads({extras: {paths: true}})`.
136
+
137
+ Detail values select which feature classes may be labeled; they do not force every name onto the
138
+ map. Labels keep the template's natural zoom ranges and MapLibre collision handling. Road labels
139
+ are also clamped to the classes currently visible through `roads({detail})`, so the effective result
140
+ is the intersection of both modules. `language` accepts `auto`, `local`, or a language code such as
141
+ `en` or `es`.
135
142
 
136
143
  Without options, `labels()` uses `language: 'auto'` and `major` for all three label families.
137
144
  Label colors remain in `theme.modules.labels`; font family and weight remain in `typography`.
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ type TileflowRoads = 'hidden' | 'soft' | 'standard' | 'detailed';
5
5
  type TileflowLabels = 'none' | 'essential' | 'balanced' | 'full';
6
6
  type TileflowPoi = 'none' | 'minimal' | 'balanced' | 'full';
7
7
  type TileflowLabelDetail = 'none' | 'major' | 'all';
8
+ type TileflowRoadLabelDetail = TileflowRoadDetail;
8
9
  type TileflowLabelLanguage = 'auto' | 'local' | 'en' | (string & {});
9
10
  type TileflowPoiCategory = 'food' | 'coffee' | 'culture' | 'transit' | 'shopping' | 'lodging' | 'health' | 'education' | 'services' | (string & {});
10
11
  type TileflowPoiIcons = boolean | 'essential' | 'full';
@@ -216,7 +217,7 @@ type TileflowLabelsModuleConfig = {
216
217
  type: 'labels';
217
218
  language?: TileflowLabelLanguage;
218
219
  places?: TileflowLabelDetail;
219
- roads?: TileflowLabelDetail;
220
+ roads?: TileflowRoadLabelDetail;
220
221
  water?: TileflowLabelDetail;
221
222
  };
222
223
  type TileflowLabelsModuleOptions = Omit<TileflowLabelsModuleConfig, 'type'>;
@@ -764,6 +765,8 @@ declare const tileflowMapSchema: z.ZodObject<{
764
765
  roads: z.ZodOptional<z.ZodEnum<{
765
766
  none: "none";
766
767
  major: "major";
768
+ highways: "highways";
769
+ streets: "streets";
767
770
  all: "all";
768
771
  }>>;
769
772
  water: z.ZodOptional<z.ZodEnum<{
@@ -1257,6 +1260,8 @@ declare const configSchema: z.ZodObject<{
1257
1260
  roads: z.ZodOptional<z.ZodEnum<{
1258
1261
  none: "none";
1259
1262
  major: "major";
1263
+ highways: "highways";
1264
+ streets: "streets";
1260
1265
  all: "all";
1261
1266
  }>>;
1262
1267
  water: z.ZodOptional<z.ZodEnum<{
@@ -1963,6 +1968,8 @@ declare const tileflowProjectSchema: z.ZodObject<{
1963
1968
  roads: z.ZodOptional<z.ZodEnum<{
1964
1969
  none: "none";
1965
1970
  major: "major";
1971
+ highways: "highways";
1972
+ streets: "streets";
1966
1973
  all: "all";
1967
1974
  }>>;
1968
1975
  water: z.ZodOptional<z.ZodEnum<{
@@ -2353,4 +2360,4 @@ declare function normalizeTileflowStaticImageSize(input: {
2353
2360
  };
2354
2361
  declare function inferTileflowAnalyticsFromStyleUrl(styleUrl: string): TileflowAnalytics | undefined;
2355
2362
 
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 };
2363
+ 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 TileflowRoadLabelDetail, 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 };