@chrtco/sdk 0.10.52 → 0.10.54
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/CHANGELOG.md +14 -0
- package/dist/index.cjs +63 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +82 -3
- package/dist/index.d.ts +82 -3
- package/dist/index.js +59 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -184,6 +184,83 @@ interface BandPriorityRange {
|
|
|
184
184
|
* z3, so the widened range is a no-op against them.
|
|
185
185
|
*/
|
|
186
186
|
declare const BAND_PRIORITY_RANGES: Record<BandCode, BandPriorityRange>;
|
|
187
|
+
/**
|
|
188
|
+
* Aids to navigation: buoys, beacons, lights, light floats and vessels, fog
|
|
189
|
+
* signals, the radio and radar aids (radio stations, racons, radar reflectors,
|
|
190
|
+
* retro-reflectors) and the topmarks and daymarks they carry; INT 1 sections
|
|
191
|
+
* P to S. An overview or general chart that carries one carries it at its own
|
|
192
|
+
* scale, so it draws there (see COARSE_MARK_FLOOR).
|
|
193
|
+
*
|
|
194
|
+
* The lookup's "Navigation Aids" category (s52-lookup.ts) less three classes
|
|
195
|
+
* that are not aids: PILPNT (a pile, INT 1 F 22), DISMAR (a distance mark) and
|
|
196
|
+
* NAVLNE (a line, never a point mark). coarse-mark-floor.test.ts holds the two
|
|
197
|
+
* together. RDOSTA is here because the rest of the style already treats it as
|
|
198
|
+
* one: dominance-exempt with the buoys (style-generator.ts) and in the Style
|
|
199
|
+
* API's nav-aid "radar" group (custom-style.ts).
|
|
200
|
+
*/
|
|
201
|
+
declare const AID_TO_NAVIGATION_CLASSES: ReadonlySet<string>;
|
|
202
|
+
/**
|
|
203
|
+
* Hazards held out of COARSE_MARK_FLOOR for now (owner, 2026-11-03: "Hold
|
|
204
|
+
* hazards, ship rest"): wrecks, rocks and obstructions draw from their band
|
|
205
|
+
* floor, as before.
|
|
206
|
+
*
|
|
207
|
+
* Why: 15 of the band-1/2 hazards the floor would take away draw at no other
|
|
208
|
+
* zoom. 14 carry a `_dominated_by_min` tag although the finer band has no copy
|
|
209
|
+
* of them, so the dominance gate hides them from that band's floor (wreck
|
|
210
|
+
* 0226021E4EDC0032, US2GC09M, off Sanibel: in every tile z6–z14, hidden from
|
|
211
|
+
* z7, no band-3 wreck within 3 km). Their zoomed-out view is the only one they
|
|
212
|
+
* have. Once they draw from z7, this set empties and the floor reaches them.
|
|
213
|
+
*/
|
|
214
|
+
declare const COARSE_MARK_HELD_HAZARDS: ReadonlySet<string>;
|
|
215
|
+
/**
|
|
216
|
+
* The zoom below which an overview or general chart draws no mark but an aid
|
|
217
|
+
* to navigation: the coastal band's floor, where the coastal charts' marks
|
|
218
|
+
* come in.
|
|
219
|
+
*
|
|
220
|
+
* Owner, 2026-11-03, on CHRTpaper's zoomed-out index map: "why do a few sparse
|
|
221
|
+
* ATONs and squares and circles show up? lets fix the display rules so they
|
|
222
|
+
* show with all the others right? … I think we need to fix that across the
|
|
223
|
+
* whole enc api service", then, on the rule: "if there are AtoNs or lights in
|
|
224
|
+
* the General or Overview scales, they should show. if they are not in those
|
|
225
|
+
* scales, then one floor for all marks (about z7) it is".
|
|
226
|
+
*
|
|
227
|
+
* Measured the same day on the prod archive (build 6f17d4e3), every z0–z6
|
|
228
|
+
* tile, with MapLibre's own filter evaluation, the held hazards excluded
|
|
229
|
+
* (COARSE_MARK_HELD_HAZARDS): 7,399 band-1/2 point marks that drew below z7
|
|
230
|
+
* no longer do, led by LNDARE islets (6,809), OFSPLF platforms (211), DMPGRD
|
|
231
|
+
* (163) and CTNARE (120). Still drawn below z7: the aids (lights, buoys,
|
|
232
|
+
* beacons, daymarks, topmarks) and the held wrecks, rocks and obstructions.
|
|
233
|
+
* Bands 3–6 already start at or above z7, so they are untouched, as are
|
|
234
|
+
* fills, lines, soundings and text, and at z7 and above these layers draw
|
|
235
|
+
* exactly what they drew before.
|
|
236
|
+
*
|
|
237
|
+
* Most come back at z7 or z8, as themselves or as a finer chart's copy. 237
|
|
238
|
+
* do not come back at any zoom, none of them a hazard: 218 islets drawn as
|
|
239
|
+
* points (most along the Arctic coast in US1GLBEA) and 19 offshore structures.
|
|
240
|
+
* They already drew only zoomed out: a dominance tag hides them from z7 where
|
|
241
|
+
* the finer chart has no copy, or the tile build dropped them from the z7
|
|
242
|
+
* tile and band 1 stops there.
|
|
243
|
+
*
|
|
244
|
+
* Chart mode never applied band floors, and this floor does not reach it, so
|
|
245
|
+
* no locked CHRTpaper sheet changes. Twelve NOAA catalogue sheets render below
|
|
246
|
+
* z7 (chart 50 at z5.2, 411 at z6.9), all of them locked chart mode. The
|
|
247
|
+
* Continuous parts of catalogue sheets (page panels and insets) render at z8.19
|
|
248
|
+
* or above.
|
|
249
|
+
*/
|
|
250
|
+
declare const COARSE_MARK_FLOOR: number;
|
|
251
|
+
/**
|
|
252
|
+
* A filter clause holding each feature to its own band's floor, for a layer
|
|
253
|
+
* that is emitted once rather than band-fanned: `[">=", ["zoom"], floor]` per
|
|
254
|
+
* band, at tile zoom, the idiom band-collapse.ts uses for collapsed labels.
|
|
255
|
+
*
|
|
256
|
+
* Continuous mode puts it on the sector-light legs and arcs (style-generator.ts),
|
|
257
|
+
* which drew from z6 for every band. A coastal or harbour light's flare waits
|
|
258
|
+
* for its band (LIGHTS-symbol-major-band4 at z9); its sector ring did not, so
|
|
259
|
+
* band-4 and band-5 rings were the lone circles on an overview view (CHRTpaper's
|
|
260
|
+
* index map over Florida, owner 2026-11-03). Bands 1 and 2 floor below the
|
|
261
|
+
* layers' own z6, so their rings are unchanged.
|
|
262
|
+
*/
|
|
263
|
+
declare function bandFloorGate(): unknown[];
|
|
187
264
|
/**
|
|
188
265
|
* Order in which band layers are emitted (and thus drawn — earlier = lower
|
|
189
266
|
* in the z-stack). Band 6 last so Berthing draws on top of Harbor.
|
|
@@ -3503,8 +3580,10 @@ declare function contourValueFactor(depthNumbersFactor: number): number;
|
|
|
3503
3580
|
/**
|
|
3504
3581
|
* The font stacks a CHRT glyph host serves (`cloudflare/tile-worker/glyphs/
|
|
3505
3582
|
* GLYPHS.json`; the test pins this copy to it). Open Sans has no Bold; Old
|
|
3506
|
-
* Standard TT is CHRTpaper's engraving face (tools/chrt-paper/src/look.ts)
|
|
3507
|
-
*
|
|
3583
|
+
* Standard TT is CHRTpaper's engraving face (tools/chrt-paper/src/look.ts)
|
|
3584
|
+
* and Liberation Sans its Helvetica-like face for placed labels in the
|
|
3585
|
+
* Classic look (tools/chrt-paper/src/placements.ts). Neither has a Semibold,
|
|
3586
|
+
* so rule A leaves them as they are.
|
|
3508
3587
|
*/
|
|
3509
3588
|
declare const SERVED_FONT_STACKS: readonly string[];
|
|
3510
3589
|
/**
|
|
@@ -6250,4 +6329,4 @@ declare class Chrt {
|
|
|
6250
6329
|
warmTiles(region?: string): Promise<TileTokenResponse>;
|
|
6251
6330
|
}
|
|
6252
6331
|
|
|
6253
|
-
export { ALL_NAV_AID_LAYERS, ALL_WATER_BODY_LAYERS, AREA_QUERY_LAYERS, ATON_EXPRESSION_CLASSES, type AheadCoverageCell, type AheadFeatureProperties, type AheadOptions, type AheadResponse, type AlongRouteFeatureProperties, type AlongRouteOptions, type AlongRouteResponse, type AreaInspectResult, type AtlasStyle, type AttachOptions, BAND_CODE_ALIASES, BAND_DRAW_ORDER, BAND_PRIORITY_RANGES, BASE_ATTRIBUTION, BASE_BUNDLE_ATTRIBUTION, BASE_BUNDLE_ID, BASE_BUNDLE_MAXZOOM, BASE_BUNDLE_SCHEMA, BASE_BUNDLE_SOURCE_LAYERS, BASE_CLIENT_RASTER_BEFORE_ID, BASE_MAXZOOM, BASE_MINZOOM, BASE_REGION, type BBox, BRIDGE_QUERY_LAYERS, BUILD_MAXZOOM, BUILD_MINZOOM, BUILD_PARAM, type BandCode, type BandPriorityRange, type BridgeInspectResult, type BuildOfflineStyleOptions, type BuildSourcesOptions, CHART_BAND_CODES, CHART_CASCADE_CODES, CHART_SECTIONS, CHART_SOUNDINGS_RULE, CHART_SYMBOL_SCALE, CHART_SYMBOL_SIZES, CHART_SYMBOL_SIZE_LABELS, CHART_SYMBOL_SIZE_REACH, CHART_SYMBOL_SIZE_WIRE, CHRTRASTER_REF_CROPS, CHRTRASTER_SVGS, CHRT_ATON_COLORS, CHRT_GLYPH_NAMES, CHRT_GLYPH_SVGS, CHRT_ICON_EXPRESSIONS, CHRT_ICON_PREFIX, CHRT_SDF_GLYPHS, CHRT_STYLE_MODES, type CandidateQueryOptions, type CandidatesEventContext, type CellDeletedEvent, type CellDetail, type CellEventData, type CellNewEvent, type CellUpdatedData, type CellUpdatedEvent, type CellsOptions, type CellsResponse, type ChartSection, type ChartSoundingsRule, type ChartSymbolScales, type ChartSymbolSize, Chrt, type ChrtConfig, ChrtError, type ChrtStyleMode, type ChrtStyleOptions, type ChrtStyleTheme, type ChrtSymbolSet, type ClickAnchor, ColorTableName, type CoverageOptions, type CoverageResponse, type CoverageRouteCell, type CoverageRouteOptions, type CoverageRouteResponse, type CoverageSource, type CustomStyleConfig, DANGER_DEPTH_LABEL_ID, DANGER_DEPTH_PLACER_ID, DANGER_DEPTH_PLACER_LAYOUT, DANGER_DEPTH_VISIBLE_LAYOUT, DEFAULT_CLICK_TOLERANCE, DEFAULT_CUSTOM_STYLE_CONFIG, DEFAULT_INSPECT_CLASS_RANK, DEFAULT_LABEL_SETTINGS, DEFAULT_NAV_AID_SETTINGS, DEFAULT_REGION, DEFAULT_SAFETY_CONTOUR_M, DEFAULT_SOUNDING_SETTINGS, DEFAULT_TILE_BASE_URL, DEFAULT_TILE_REGION, DEFAULT_WATER_BODY_SETTINGS, DEPARE_FILL_BRANCH_TOKENS, DEPARE_FILL_FALLBACK_TOKEN, DEPTH_FIGURE_CLASSES, DRAPEABLE_LAYER_TYPES, type DecodeNavAidOptions, type DecodedAreaFeature, type DecodedBridge, type DecodedDayboard, type DecodedNavAid, type DecodedProperty, type DisplayCategory, type DisplayMode, EINK_DANGER_PATTERN, EINK_DOTS_PATTERN, EINK_HATCH_PATTERN, type FeatureCollection, type FeaturesOptions, type FetchStyleOptions, FileSystemAdapter, type FlashPattern, type FlashPhase, type GenerateCustomStyleOptions, type GeneratedCustomStyle, type GeoJsonFeature, type GeoJsonGeometry, type GeomType, HAZARD_LABEL_PRIORITY, INSPECT_CLASS_RANK, INSPECT_RANK_DEVIATIONS, IS_SECTOR_LIGHT, type InspectCandidate, type InspectCandidateSet, type InspectEnrichment, type InspectEventContext, type InspectNotice, type InspectOptions, type InspectResult, type InspectTargetClass, type InspectableFeature, InteractClient, type InteractEntitlement, InteractError, type InteractErrorCode, type InteractHandle, type InteractMapLike, type InteractMapMouseEvent, LABELED_LAYERS, LABEL_BEHAVIOR, LABEL_LAYER_GROUPS, LABEL_PRIORITY, LAMP_CORE_LAYER_ID, LAMP_GLOW_LAYER_ID, LAMP_LAYER_IDS, LAMP_TICK_MS, LAND_ATTRIBUTION, LAND_BUILD_MAXZOOM, LAND_REGION, LAND_TEXT_CLASSES, LIGHTHOUSE_NAME_FILTER, LIGHTHOUSE_NAME_LABEL_PRIORITY, LIGHT_LABEL_FEET_PER_METRE, type LabelBehavior, type LabelConfigOptions, type LabelLayerConfig, type LabelSettings, type LampLayer, type LightDescriptionOptions, type LightHeightUnits, type LookupEntry, MAPLIBRE_DEFAULT_TEXT_PADDING_PX, type MapLibreStyle, type MapboxStyle, type MapboxVectorSource, type MarineAlert, type MarineAlertsOptions, type MarineAlertsResponse, type MarineConditionsObservation, type MarineConditionsOptions, type MarineConditionsResponse, type MarineConditionsSeries, type MarineForecastOptions, type MarineForecastPeriod, type MarineForecastResponse, type MarineSeas, type MarineStation, type MarineSwellTrain, type MarineWind, type MarineZoneRef, NAUTICAL_SYMBOLS, NAV_AID_LAYER_GROUPS, NAV_AID_QUERY_LAYERS, NIGHT_INK, NIGHT_MUTED_INK, NON_SOLAS_DISCLAIMER, NON_SOLAS_DISCLAIMER_SHORT, type NauticalCategory, type NauticalSymbol, type NavAidInspectResult, type NavAidSettings, type NearbyMarineStation, OPAQUE_SPLIT_OF, OUTRANK_LABELS, type OfflineBundleResponse, type OfflineDownloadOptions, type OfflineDownloadProgress, type OfflineDownloadResult, OfflineError, type OfflineErrorCode, type OfflineFetchStyleOptions, type OfflineHeartbeatOptions, type OfflineRegionSummary, type OfflineRemoveOptions, OfflineStyleError, type OfflineStylePlatform, type OfflineStyleResponse, PLACENAME_LAND_CLASSES, PLACENAME_SOURCE_LAYER, PLACENAME_WATER_CLASSES, type ParsedSigseqTerms, type PmtilesVectorSource, type Poi, type PoiCoverage, type PoiDataset, type PoiOptions, type PoiResponse, type QueryFeatureProperties, type QueryOptions, type QueryResponse, RASTER_ATON_CLASSES, RASTER_GLYPH_NAMES, RASTER_ICON_PREFIX, RELIEF_ATTRIBUTION, RELIEF_ENCODING, RELIEF_REGION, RELIEF_TILE_SIZE, type ResolvedStyle, type ResolvedTheme, type S101ArtworkProvenance, type S101Feature, S101_AREA_FILL_NAMES, S101_CHART_SECTIONS, S101_FEATURES, S101_ICON_PREFIX, S101_LINE_STYLE_NAMES, S101_NEW_SYMBOLS, S101_NO_OFFICIAL_COUNTERPART, S101_SOURCE_COMMIT, S101_SYMBOL_GROUPS, S101_SYMBOL_NAMES, S52_ATON_LOOKUPS, S52_ATON_LOOKUPS_PAPER, S52_DRAW_ORDER, S52_LOOKUP, S52_PATTERN_SPRITE_PREFIX, SEAFLOOR_ATTRIBUTION, SEAFLOOR_BAKE, SEAFLOOR_LAYER_ID, SEAFLOOR_MAXZOOM, SEAFLOOR_MINZOOM, SEAFLOOR_REGION, SEAFLOOR_THEME_PAINT, SEAFLOOR_TILE_SIZE, SECTOR_ARC_LAYER_IDS, SECTOR_LEG_LAYER_IDS, SECTOR_LIGHT_LAYER_IDS, SERVED_FONT_STACKS, SERVED_SOUNDING_PADDING_PX, SIGPER_TOLERANCE_SECONDS, SIGSEQ_MAX_TERMS, SOUNDING_LAYERS, SOUNDING_PADDING_PER_FACTOR, STANDARD_CHART_SYMBOL_SCALES, STATUS_EXTINGUISHED, SYMBOL_ANNOTATION_TEXT_CLASSES, SYMBOL_GROUPS, SYMBOL_MAP, type ScaleBand, type SearchCoverageNotice, type SearchHit, type SearchOptions, type SearchResponse, type SectorArcFeature, type SectorArcFeatureCollection, type SectorInfo, type SigseqRefusal, type SigseqTerm, type SoundingSettings, type SourceMode, type StyleGeneratorOptions, type StyleLayer, type StyleUrlOptions, type SymbolGroup, TileAuth, type TileGroup, type TileGroupsResponse, TileTokenError, type TileTokenErrorCode, type TileTokenResponse, type TransformRequest, type TransformedRequest, type VectorSourceSpec, type VesselProfile, WATER_BODY_LAYER_GROUPS, WATER_TEXT_CLASSES, type WaterBodySettings, WeatherEndpoint, type WeatherReading, type WebhookEvent, type WebhookEventType, type WebhookPayload, addDangerDepthPlacers, applyBaseBundle, applyChartSymbolScales, applyChartSymbolScalesToLayer, applyChrtSymbolSet, applyColorTheme, applyCustomStyleSettings, applyEinkPortrayal, applyRasterSymbolSet, applyS101SymbolSet, atonIconExpression, bandFilterExpression, buildAirportTierExpression, buildBuiltUpAreaTierExpression, buildFlashPattern, buildLabelLayer, buildLakeTierExpression, buildLampLayers, buildLandAreaTierExpression, buildLandRegionTierExpression, buildLayersForClass, buildOfflineStyle, buildPlaceNameLayers, buildRiverTierExpression, buildSeaAreaTierExpression, buildSectorArcGeoJSON, buildSectorArcsFC, buildSectorLightLayers, buildSectorsFromFeatures, buildSources, candidateRank, capLuminance, cellBandCharacters, cellBandMatch, chartSymbolSizingCensus, chrtAtonTintExpression, chrtHouseColor, chrtLightTintExpression, clampChartSymbolScale, collectCandidates, collectClickCandidates, combineWithBandFilter, contourValueFactor, contrastRatio, copyLightDescriptionAttributes, dangerDepthPlacerId, daymarkColor, decimateFeatures, decodeAreaFeatureProps, decodeBridgeProps, decodeCandidate, decodeChartSymbolScale, decodeNavAidProps, demotedBelowSoundings, depareColor, depareFillExpression, depthAreaClassLayerId, depthAreaSplitIds, deriveMarinerName, drapeHalves, drapedFirst, extinguishedLightExpression, extractNavAidDesignation, featureIdentity, formatDayboard, formatLightDescription, formatLightRhythm, fromZoom, generateCustomStyle, generateSpriteManifest, generateSpriteSheet, generateStyle, generateStyleJSON, getAvailableLineSymbols, getAvailablePatterns, getAvailablePointSymbols, getCollisionSettings, getDrawPriority, getGridSizeForZoom, getIconExpression, getLabelBehavior, getLabelConfig, getLabelPriority, getLookupEntry, getMaxCellsForZoom, getOrderedClasses, getRasterSvg, getS52SvgString, getS52SymbolStats, getStyleStats, getSymbolSvgString, getThemedS101Svg, getThemedS52Svg, getTopmarkMeaning, haloFactor, hazardColor, hazardFillExpression, iconSliderFor, isDangerDepthPlacer, isDepthAreaClassLayerId, isDrapeable, isExtinguishedLight, isLabelLayerVisible, isMapLive, isNavAidLayer, isNavAidLayerVisible, isSectorSpriteId, isSoundingLayerVisible, isValidSiggrp, isVisibleInMode, isWaterBodyLayerVisible, keptAboveSoundings, labelSortKey, lampRhythmColour, lampRhythmOpacity, lateralColor, lateralFillExpression, lightCharacterText, lightColor, lightColourText, lightDescriptionExpression, lightDescriptionProps, lightFillExpression, lightHeightText, lightsIconExpression, normalizeStyleMode, normalizeTheme, opaqueSplitBaseOf, paginate, parseListCodes, parseSigseqTerms, parseWebhook, patternSpriteId, preprocessLights, preprocessNavAids, preprocessSoundings, preprocessWaterBodies, rasterAtonIconExpression, relativeLuminance, resolveCustomTheme, resolveRasterImage, resolveS101Color, resolveStyle, resolveTargetClass, rhythmProperties, s101ArtworkProvenance, safetyContourValues, sanitizeCustomStyleConfig, scaleLinearLight, scaleSizeExpression, scaleSizeValue, scaminToMinZoom, seafloorLayers, sectorLimitToArcBearing, semiboldFontStack, snapChartSymbolScale, soundingPadding, soundingPaddingValue, splitOpaqueDepthAreas, stepChartSymbolScale, styleModeBand, terrainStackCount, textSliderFor, themeChrtGlyph, tileTemplate, uncoveredSectorArcs, withinBboxFilter, worldMinusBboxPolygon };
|
|
6332
|
+
export { AID_TO_NAVIGATION_CLASSES, ALL_NAV_AID_LAYERS, ALL_WATER_BODY_LAYERS, AREA_QUERY_LAYERS, ATON_EXPRESSION_CLASSES, type AheadCoverageCell, type AheadFeatureProperties, type AheadOptions, type AheadResponse, type AlongRouteFeatureProperties, type AlongRouteOptions, type AlongRouteResponse, type AreaInspectResult, type AtlasStyle, type AttachOptions, BAND_CODE_ALIASES, BAND_DRAW_ORDER, BAND_PRIORITY_RANGES, BASE_ATTRIBUTION, BASE_BUNDLE_ATTRIBUTION, BASE_BUNDLE_ID, BASE_BUNDLE_MAXZOOM, BASE_BUNDLE_SCHEMA, BASE_BUNDLE_SOURCE_LAYERS, BASE_CLIENT_RASTER_BEFORE_ID, BASE_MAXZOOM, BASE_MINZOOM, BASE_REGION, type BBox, BRIDGE_QUERY_LAYERS, BUILD_MAXZOOM, BUILD_MINZOOM, BUILD_PARAM, type BandCode, type BandPriorityRange, type BridgeInspectResult, type BuildOfflineStyleOptions, type BuildSourcesOptions, CHART_BAND_CODES, CHART_CASCADE_CODES, CHART_SECTIONS, CHART_SOUNDINGS_RULE, CHART_SYMBOL_SCALE, CHART_SYMBOL_SIZES, CHART_SYMBOL_SIZE_LABELS, CHART_SYMBOL_SIZE_REACH, CHART_SYMBOL_SIZE_WIRE, CHRTRASTER_REF_CROPS, CHRTRASTER_SVGS, CHRT_ATON_COLORS, CHRT_GLYPH_NAMES, CHRT_GLYPH_SVGS, CHRT_ICON_EXPRESSIONS, CHRT_ICON_PREFIX, CHRT_SDF_GLYPHS, CHRT_STYLE_MODES, COARSE_MARK_FLOOR, COARSE_MARK_HELD_HAZARDS, type CandidateQueryOptions, type CandidatesEventContext, type CellDeletedEvent, type CellDetail, type CellEventData, type CellNewEvent, type CellUpdatedData, type CellUpdatedEvent, type CellsOptions, type CellsResponse, type ChartSection, type ChartSoundingsRule, type ChartSymbolScales, type ChartSymbolSize, Chrt, type ChrtConfig, ChrtError, type ChrtStyleMode, type ChrtStyleOptions, type ChrtStyleTheme, type ChrtSymbolSet, type ClickAnchor, ColorTableName, type CoverageOptions, type CoverageResponse, type CoverageRouteCell, type CoverageRouteOptions, type CoverageRouteResponse, type CoverageSource, type CustomStyleConfig, DANGER_DEPTH_LABEL_ID, DANGER_DEPTH_PLACER_ID, DANGER_DEPTH_PLACER_LAYOUT, DANGER_DEPTH_VISIBLE_LAYOUT, DEFAULT_CLICK_TOLERANCE, DEFAULT_CUSTOM_STYLE_CONFIG, DEFAULT_INSPECT_CLASS_RANK, DEFAULT_LABEL_SETTINGS, DEFAULT_NAV_AID_SETTINGS, DEFAULT_REGION, DEFAULT_SAFETY_CONTOUR_M, DEFAULT_SOUNDING_SETTINGS, DEFAULT_TILE_BASE_URL, DEFAULT_TILE_REGION, DEFAULT_WATER_BODY_SETTINGS, DEPARE_FILL_BRANCH_TOKENS, DEPARE_FILL_FALLBACK_TOKEN, DEPTH_FIGURE_CLASSES, DRAPEABLE_LAYER_TYPES, type DecodeNavAidOptions, type DecodedAreaFeature, type DecodedBridge, type DecodedDayboard, type DecodedNavAid, type DecodedProperty, type DisplayCategory, type DisplayMode, EINK_DANGER_PATTERN, EINK_DOTS_PATTERN, EINK_HATCH_PATTERN, type FeatureCollection, type FeaturesOptions, type FetchStyleOptions, FileSystemAdapter, type FlashPattern, type FlashPhase, type GenerateCustomStyleOptions, type GeneratedCustomStyle, type GeoJsonFeature, type GeoJsonGeometry, type GeomType, HAZARD_LABEL_PRIORITY, INSPECT_CLASS_RANK, INSPECT_RANK_DEVIATIONS, IS_SECTOR_LIGHT, type InspectCandidate, type InspectCandidateSet, type InspectEnrichment, type InspectEventContext, type InspectNotice, type InspectOptions, type InspectResult, type InspectTargetClass, type InspectableFeature, InteractClient, type InteractEntitlement, InteractError, type InteractErrorCode, type InteractHandle, type InteractMapLike, type InteractMapMouseEvent, LABELED_LAYERS, LABEL_BEHAVIOR, LABEL_LAYER_GROUPS, LABEL_PRIORITY, LAMP_CORE_LAYER_ID, LAMP_GLOW_LAYER_ID, LAMP_LAYER_IDS, LAMP_TICK_MS, LAND_ATTRIBUTION, LAND_BUILD_MAXZOOM, LAND_REGION, LAND_TEXT_CLASSES, LIGHTHOUSE_NAME_FILTER, LIGHTHOUSE_NAME_LABEL_PRIORITY, LIGHT_LABEL_FEET_PER_METRE, type LabelBehavior, type LabelConfigOptions, type LabelLayerConfig, type LabelSettings, type LampLayer, type LightDescriptionOptions, type LightHeightUnits, type LookupEntry, MAPLIBRE_DEFAULT_TEXT_PADDING_PX, type MapLibreStyle, type MapboxStyle, type MapboxVectorSource, type MarineAlert, type MarineAlertsOptions, type MarineAlertsResponse, type MarineConditionsObservation, type MarineConditionsOptions, type MarineConditionsResponse, type MarineConditionsSeries, type MarineForecastOptions, type MarineForecastPeriod, type MarineForecastResponse, type MarineSeas, type MarineStation, type MarineSwellTrain, type MarineWind, type MarineZoneRef, NAUTICAL_SYMBOLS, NAV_AID_LAYER_GROUPS, NAV_AID_QUERY_LAYERS, NIGHT_INK, NIGHT_MUTED_INK, NON_SOLAS_DISCLAIMER, NON_SOLAS_DISCLAIMER_SHORT, type NauticalCategory, type NauticalSymbol, type NavAidInspectResult, type NavAidSettings, type NearbyMarineStation, OPAQUE_SPLIT_OF, OUTRANK_LABELS, type OfflineBundleResponse, type OfflineDownloadOptions, type OfflineDownloadProgress, type OfflineDownloadResult, OfflineError, type OfflineErrorCode, type OfflineFetchStyleOptions, type OfflineHeartbeatOptions, type OfflineRegionSummary, type OfflineRemoveOptions, OfflineStyleError, type OfflineStylePlatform, type OfflineStyleResponse, PLACENAME_LAND_CLASSES, PLACENAME_SOURCE_LAYER, PLACENAME_WATER_CLASSES, type ParsedSigseqTerms, type PmtilesVectorSource, type Poi, type PoiCoverage, type PoiDataset, type PoiOptions, type PoiResponse, type QueryFeatureProperties, type QueryOptions, type QueryResponse, RASTER_ATON_CLASSES, RASTER_GLYPH_NAMES, RASTER_ICON_PREFIX, RELIEF_ATTRIBUTION, RELIEF_ENCODING, RELIEF_REGION, RELIEF_TILE_SIZE, type ResolvedStyle, type ResolvedTheme, type S101ArtworkProvenance, type S101Feature, S101_AREA_FILL_NAMES, S101_CHART_SECTIONS, S101_FEATURES, S101_ICON_PREFIX, S101_LINE_STYLE_NAMES, S101_NEW_SYMBOLS, S101_NO_OFFICIAL_COUNTERPART, S101_SOURCE_COMMIT, S101_SYMBOL_GROUPS, S101_SYMBOL_NAMES, S52_ATON_LOOKUPS, S52_ATON_LOOKUPS_PAPER, S52_DRAW_ORDER, S52_LOOKUP, S52_PATTERN_SPRITE_PREFIX, SEAFLOOR_ATTRIBUTION, SEAFLOOR_BAKE, SEAFLOOR_LAYER_ID, SEAFLOOR_MAXZOOM, SEAFLOOR_MINZOOM, SEAFLOOR_REGION, SEAFLOOR_THEME_PAINT, SEAFLOOR_TILE_SIZE, SECTOR_ARC_LAYER_IDS, SECTOR_LEG_LAYER_IDS, SECTOR_LIGHT_LAYER_IDS, SERVED_FONT_STACKS, SERVED_SOUNDING_PADDING_PX, SIGPER_TOLERANCE_SECONDS, SIGSEQ_MAX_TERMS, SOUNDING_LAYERS, SOUNDING_PADDING_PER_FACTOR, STANDARD_CHART_SYMBOL_SCALES, STATUS_EXTINGUISHED, SYMBOL_ANNOTATION_TEXT_CLASSES, SYMBOL_GROUPS, SYMBOL_MAP, type ScaleBand, type SearchCoverageNotice, type SearchHit, type SearchOptions, type SearchResponse, type SectorArcFeature, type SectorArcFeatureCollection, type SectorInfo, type SigseqRefusal, type SigseqTerm, type SoundingSettings, type SourceMode, type StyleGeneratorOptions, type StyleLayer, type StyleUrlOptions, type SymbolGroup, TileAuth, type TileGroup, type TileGroupsResponse, TileTokenError, type TileTokenErrorCode, type TileTokenResponse, type TransformRequest, type TransformedRequest, type VectorSourceSpec, type VesselProfile, WATER_BODY_LAYER_GROUPS, WATER_TEXT_CLASSES, type WaterBodySettings, WeatherEndpoint, type WeatherReading, type WebhookEvent, type WebhookEventType, type WebhookPayload, addDangerDepthPlacers, applyBaseBundle, applyChartSymbolScales, applyChartSymbolScalesToLayer, applyChrtSymbolSet, applyColorTheme, applyCustomStyleSettings, applyEinkPortrayal, applyRasterSymbolSet, applyS101SymbolSet, atonIconExpression, bandFilterExpression, bandFloorGate, buildAirportTierExpression, buildBuiltUpAreaTierExpression, buildFlashPattern, buildLabelLayer, buildLakeTierExpression, buildLampLayers, buildLandAreaTierExpression, buildLandRegionTierExpression, buildLayersForClass, buildOfflineStyle, buildPlaceNameLayers, buildRiverTierExpression, buildSeaAreaTierExpression, buildSectorArcGeoJSON, buildSectorArcsFC, buildSectorLightLayers, buildSectorsFromFeatures, buildSources, candidateRank, capLuminance, cellBandCharacters, cellBandMatch, chartSymbolSizingCensus, chrtAtonTintExpression, chrtHouseColor, chrtLightTintExpression, clampChartSymbolScale, collectCandidates, collectClickCandidates, combineWithBandFilter, contourValueFactor, contrastRatio, copyLightDescriptionAttributes, dangerDepthPlacerId, daymarkColor, decimateFeatures, decodeAreaFeatureProps, decodeBridgeProps, decodeCandidate, decodeChartSymbolScale, decodeNavAidProps, demotedBelowSoundings, depareColor, depareFillExpression, depthAreaClassLayerId, depthAreaSplitIds, deriveMarinerName, drapeHalves, drapedFirst, extinguishedLightExpression, extractNavAidDesignation, featureIdentity, formatDayboard, formatLightDescription, formatLightRhythm, fromZoom, generateCustomStyle, generateSpriteManifest, generateSpriteSheet, generateStyle, generateStyleJSON, getAvailableLineSymbols, getAvailablePatterns, getAvailablePointSymbols, getCollisionSettings, getDrawPriority, getGridSizeForZoom, getIconExpression, getLabelBehavior, getLabelConfig, getLabelPriority, getLookupEntry, getMaxCellsForZoom, getOrderedClasses, getRasterSvg, getS52SvgString, getS52SymbolStats, getStyleStats, getSymbolSvgString, getThemedS101Svg, getThemedS52Svg, getTopmarkMeaning, haloFactor, hazardColor, hazardFillExpression, iconSliderFor, isDangerDepthPlacer, isDepthAreaClassLayerId, isDrapeable, isExtinguishedLight, isLabelLayerVisible, isMapLive, isNavAidLayer, isNavAidLayerVisible, isSectorSpriteId, isSoundingLayerVisible, isValidSiggrp, isVisibleInMode, isWaterBodyLayerVisible, keptAboveSoundings, labelSortKey, lampRhythmColour, lampRhythmOpacity, lateralColor, lateralFillExpression, lightCharacterText, lightColor, lightColourText, lightDescriptionExpression, lightDescriptionProps, lightFillExpression, lightHeightText, lightsIconExpression, normalizeStyleMode, normalizeTheme, opaqueSplitBaseOf, paginate, parseListCodes, parseSigseqTerms, parseWebhook, patternSpriteId, preprocessLights, preprocessNavAids, preprocessSoundings, preprocessWaterBodies, rasterAtonIconExpression, relativeLuminance, resolveCustomTheme, resolveRasterImage, resolveS101Color, resolveStyle, resolveTargetClass, rhythmProperties, s101ArtworkProvenance, safetyContourValues, sanitizeCustomStyleConfig, scaleLinearLight, scaleSizeExpression, scaleSizeValue, scaminToMinZoom, seafloorLayers, sectorLimitToArcBearing, semiboldFontStack, snapChartSymbolScale, soundingPadding, soundingPaddingValue, splitOpaqueDepthAreas, stepChartSymbolScale, styleModeBand, terrainStackCount, textSliderFor, themeChrtGlyph, tileTemplate, uncoveredSectorArcs, withinBboxFilter, worldMinusBboxPolygon };
|
package/dist/index.d.ts
CHANGED
|
@@ -184,6 +184,83 @@ interface BandPriorityRange {
|
|
|
184
184
|
* z3, so the widened range is a no-op against them.
|
|
185
185
|
*/
|
|
186
186
|
declare const BAND_PRIORITY_RANGES: Record<BandCode, BandPriorityRange>;
|
|
187
|
+
/**
|
|
188
|
+
* Aids to navigation: buoys, beacons, lights, light floats and vessels, fog
|
|
189
|
+
* signals, the radio and radar aids (radio stations, racons, radar reflectors,
|
|
190
|
+
* retro-reflectors) and the topmarks and daymarks they carry; INT 1 sections
|
|
191
|
+
* P to S. An overview or general chart that carries one carries it at its own
|
|
192
|
+
* scale, so it draws there (see COARSE_MARK_FLOOR).
|
|
193
|
+
*
|
|
194
|
+
* The lookup's "Navigation Aids" category (s52-lookup.ts) less three classes
|
|
195
|
+
* that are not aids: PILPNT (a pile, INT 1 F 22), DISMAR (a distance mark) and
|
|
196
|
+
* NAVLNE (a line, never a point mark). coarse-mark-floor.test.ts holds the two
|
|
197
|
+
* together. RDOSTA is here because the rest of the style already treats it as
|
|
198
|
+
* one: dominance-exempt with the buoys (style-generator.ts) and in the Style
|
|
199
|
+
* API's nav-aid "radar" group (custom-style.ts).
|
|
200
|
+
*/
|
|
201
|
+
declare const AID_TO_NAVIGATION_CLASSES: ReadonlySet<string>;
|
|
202
|
+
/**
|
|
203
|
+
* Hazards held out of COARSE_MARK_FLOOR for now (owner, 2026-11-03: "Hold
|
|
204
|
+
* hazards, ship rest"): wrecks, rocks and obstructions draw from their band
|
|
205
|
+
* floor, as before.
|
|
206
|
+
*
|
|
207
|
+
* Why: 15 of the band-1/2 hazards the floor would take away draw at no other
|
|
208
|
+
* zoom. 14 carry a `_dominated_by_min` tag although the finer band has no copy
|
|
209
|
+
* of them, so the dominance gate hides them from that band's floor (wreck
|
|
210
|
+
* 0226021E4EDC0032, US2GC09M, off Sanibel: in every tile z6–z14, hidden from
|
|
211
|
+
* z7, no band-3 wreck within 3 km). Their zoomed-out view is the only one they
|
|
212
|
+
* have. Once they draw from z7, this set empties and the floor reaches them.
|
|
213
|
+
*/
|
|
214
|
+
declare const COARSE_MARK_HELD_HAZARDS: ReadonlySet<string>;
|
|
215
|
+
/**
|
|
216
|
+
* The zoom below which an overview or general chart draws no mark but an aid
|
|
217
|
+
* to navigation: the coastal band's floor, where the coastal charts' marks
|
|
218
|
+
* come in.
|
|
219
|
+
*
|
|
220
|
+
* Owner, 2026-11-03, on CHRTpaper's zoomed-out index map: "why do a few sparse
|
|
221
|
+
* ATONs and squares and circles show up? lets fix the display rules so they
|
|
222
|
+
* show with all the others right? … I think we need to fix that across the
|
|
223
|
+
* whole enc api service", then, on the rule: "if there are AtoNs or lights in
|
|
224
|
+
* the General or Overview scales, they should show. if they are not in those
|
|
225
|
+
* scales, then one floor for all marks (about z7) it is".
|
|
226
|
+
*
|
|
227
|
+
* Measured the same day on the prod archive (build 6f17d4e3), every z0–z6
|
|
228
|
+
* tile, with MapLibre's own filter evaluation, the held hazards excluded
|
|
229
|
+
* (COARSE_MARK_HELD_HAZARDS): 7,399 band-1/2 point marks that drew below z7
|
|
230
|
+
* no longer do, led by LNDARE islets (6,809), OFSPLF platforms (211), DMPGRD
|
|
231
|
+
* (163) and CTNARE (120). Still drawn below z7: the aids (lights, buoys,
|
|
232
|
+
* beacons, daymarks, topmarks) and the held wrecks, rocks and obstructions.
|
|
233
|
+
* Bands 3–6 already start at or above z7, so they are untouched, as are
|
|
234
|
+
* fills, lines, soundings and text, and at z7 and above these layers draw
|
|
235
|
+
* exactly what they drew before.
|
|
236
|
+
*
|
|
237
|
+
* Most come back at z7 or z8, as themselves or as a finer chart's copy. 237
|
|
238
|
+
* do not come back at any zoom, none of them a hazard: 218 islets drawn as
|
|
239
|
+
* points (most along the Arctic coast in US1GLBEA) and 19 offshore structures.
|
|
240
|
+
* They already drew only zoomed out: a dominance tag hides them from z7 where
|
|
241
|
+
* the finer chart has no copy, or the tile build dropped them from the z7
|
|
242
|
+
* tile and band 1 stops there.
|
|
243
|
+
*
|
|
244
|
+
* Chart mode never applied band floors, and this floor does not reach it, so
|
|
245
|
+
* no locked CHRTpaper sheet changes. Twelve NOAA catalogue sheets render below
|
|
246
|
+
* z7 (chart 50 at z5.2, 411 at z6.9), all of them locked chart mode. The
|
|
247
|
+
* Continuous parts of catalogue sheets (page panels and insets) render at z8.19
|
|
248
|
+
* or above.
|
|
249
|
+
*/
|
|
250
|
+
declare const COARSE_MARK_FLOOR: number;
|
|
251
|
+
/**
|
|
252
|
+
* A filter clause holding each feature to its own band's floor, for a layer
|
|
253
|
+
* that is emitted once rather than band-fanned: `[">=", ["zoom"], floor]` per
|
|
254
|
+
* band, at tile zoom, the idiom band-collapse.ts uses for collapsed labels.
|
|
255
|
+
*
|
|
256
|
+
* Continuous mode puts it on the sector-light legs and arcs (style-generator.ts),
|
|
257
|
+
* which drew from z6 for every band. A coastal or harbour light's flare waits
|
|
258
|
+
* for its band (LIGHTS-symbol-major-band4 at z9); its sector ring did not, so
|
|
259
|
+
* band-4 and band-5 rings were the lone circles on an overview view (CHRTpaper's
|
|
260
|
+
* index map over Florida, owner 2026-11-03). Bands 1 and 2 floor below the
|
|
261
|
+
* layers' own z6, so their rings are unchanged.
|
|
262
|
+
*/
|
|
263
|
+
declare function bandFloorGate(): unknown[];
|
|
187
264
|
/**
|
|
188
265
|
* Order in which band layers are emitted (and thus drawn — earlier = lower
|
|
189
266
|
* in the z-stack). Band 6 last so Berthing draws on top of Harbor.
|
|
@@ -3503,8 +3580,10 @@ declare function contourValueFactor(depthNumbersFactor: number): number;
|
|
|
3503
3580
|
/**
|
|
3504
3581
|
* The font stacks a CHRT glyph host serves (`cloudflare/tile-worker/glyphs/
|
|
3505
3582
|
* GLYPHS.json`; the test pins this copy to it). Open Sans has no Bold; Old
|
|
3506
|
-
* Standard TT is CHRTpaper's engraving face (tools/chrt-paper/src/look.ts)
|
|
3507
|
-
*
|
|
3583
|
+
* Standard TT is CHRTpaper's engraving face (tools/chrt-paper/src/look.ts)
|
|
3584
|
+
* and Liberation Sans its Helvetica-like face for placed labels in the
|
|
3585
|
+
* Classic look (tools/chrt-paper/src/placements.ts). Neither has a Semibold,
|
|
3586
|
+
* so rule A leaves them as they are.
|
|
3508
3587
|
*/
|
|
3509
3588
|
declare const SERVED_FONT_STACKS: readonly string[];
|
|
3510
3589
|
/**
|
|
@@ -6250,4 +6329,4 @@ declare class Chrt {
|
|
|
6250
6329
|
warmTiles(region?: string): Promise<TileTokenResponse>;
|
|
6251
6330
|
}
|
|
6252
6331
|
|
|
6253
|
-
export { ALL_NAV_AID_LAYERS, ALL_WATER_BODY_LAYERS, AREA_QUERY_LAYERS, ATON_EXPRESSION_CLASSES, type AheadCoverageCell, type AheadFeatureProperties, type AheadOptions, type AheadResponse, type AlongRouteFeatureProperties, type AlongRouteOptions, type AlongRouteResponse, type AreaInspectResult, type AtlasStyle, type AttachOptions, BAND_CODE_ALIASES, BAND_DRAW_ORDER, BAND_PRIORITY_RANGES, BASE_ATTRIBUTION, BASE_BUNDLE_ATTRIBUTION, BASE_BUNDLE_ID, BASE_BUNDLE_MAXZOOM, BASE_BUNDLE_SCHEMA, BASE_BUNDLE_SOURCE_LAYERS, BASE_CLIENT_RASTER_BEFORE_ID, BASE_MAXZOOM, BASE_MINZOOM, BASE_REGION, type BBox, BRIDGE_QUERY_LAYERS, BUILD_MAXZOOM, BUILD_MINZOOM, BUILD_PARAM, type BandCode, type BandPriorityRange, type BridgeInspectResult, type BuildOfflineStyleOptions, type BuildSourcesOptions, CHART_BAND_CODES, CHART_CASCADE_CODES, CHART_SECTIONS, CHART_SOUNDINGS_RULE, CHART_SYMBOL_SCALE, CHART_SYMBOL_SIZES, CHART_SYMBOL_SIZE_LABELS, CHART_SYMBOL_SIZE_REACH, CHART_SYMBOL_SIZE_WIRE, CHRTRASTER_REF_CROPS, CHRTRASTER_SVGS, CHRT_ATON_COLORS, CHRT_GLYPH_NAMES, CHRT_GLYPH_SVGS, CHRT_ICON_EXPRESSIONS, CHRT_ICON_PREFIX, CHRT_SDF_GLYPHS, CHRT_STYLE_MODES, type CandidateQueryOptions, type CandidatesEventContext, type CellDeletedEvent, type CellDetail, type CellEventData, type CellNewEvent, type CellUpdatedData, type CellUpdatedEvent, type CellsOptions, type CellsResponse, type ChartSection, type ChartSoundingsRule, type ChartSymbolScales, type ChartSymbolSize, Chrt, type ChrtConfig, ChrtError, type ChrtStyleMode, type ChrtStyleOptions, type ChrtStyleTheme, type ChrtSymbolSet, type ClickAnchor, ColorTableName, type CoverageOptions, type CoverageResponse, type CoverageRouteCell, type CoverageRouteOptions, type CoverageRouteResponse, type CoverageSource, type CustomStyleConfig, DANGER_DEPTH_LABEL_ID, DANGER_DEPTH_PLACER_ID, DANGER_DEPTH_PLACER_LAYOUT, DANGER_DEPTH_VISIBLE_LAYOUT, DEFAULT_CLICK_TOLERANCE, DEFAULT_CUSTOM_STYLE_CONFIG, DEFAULT_INSPECT_CLASS_RANK, DEFAULT_LABEL_SETTINGS, DEFAULT_NAV_AID_SETTINGS, DEFAULT_REGION, DEFAULT_SAFETY_CONTOUR_M, DEFAULT_SOUNDING_SETTINGS, DEFAULT_TILE_BASE_URL, DEFAULT_TILE_REGION, DEFAULT_WATER_BODY_SETTINGS, DEPARE_FILL_BRANCH_TOKENS, DEPARE_FILL_FALLBACK_TOKEN, DEPTH_FIGURE_CLASSES, DRAPEABLE_LAYER_TYPES, type DecodeNavAidOptions, type DecodedAreaFeature, type DecodedBridge, type DecodedDayboard, type DecodedNavAid, type DecodedProperty, type DisplayCategory, type DisplayMode, EINK_DANGER_PATTERN, EINK_DOTS_PATTERN, EINK_HATCH_PATTERN, type FeatureCollection, type FeaturesOptions, type FetchStyleOptions, FileSystemAdapter, type FlashPattern, type FlashPhase, type GenerateCustomStyleOptions, type GeneratedCustomStyle, type GeoJsonFeature, type GeoJsonGeometry, type GeomType, HAZARD_LABEL_PRIORITY, INSPECT_CLASS_RANK, INSPECT_RANK_DEVIATIONS, IS_SECTOR_LIGHT, type InspectCandidate, type InspectCandidateSet, type InspectEnrichment, type InspectEventContext, type InspectNotice, type InspectOptions, type InspectResult, type InspectTargetClass, type InspectableFeature, InteractClient, type InteractEntitlement, InteractError, type InteractErrorCode, type InteractHandle, type InteractMapLike, type InteractMapMouseEvent, LABELED_LAYERS, LABEL_BEHAVIOR, LABEL_LAYER_GROUPS, LABEL_PRIORITY, LAMP_CORE_LAYER_ID, LAMP_GLOW_LAYER_ID, LAMP_LAYER_IDS, LAMP_TICK_MS, LAND_ATTRIBUTION, LAND_BUILD_MAXZOOM, LAND_REGION, LAND_TEXT_CLASSES, LIGHTHOUSE_NAME_FILTER, LIGHTHOUSE_NAME_LABEL_PRIORITY, LIGHT_LABEL_FEET_PER_METRE, type LabelBehavior, type LabelConfigOptions, type LabelLayerConfig, type LabelSettings, type LampLayer, type LightDescriptionOptions, type LightHeightUnits, type LookupEntry, MAPLIBRE_DEFAULT_TEXT_PADDING_PX, type MapLibreStyle, type MapboxStyle, type MapboxVectorSource, type MarineAlert, type MarineAlertsOptions, type MarineAlertsResponse, type MarineConditionsObservation, type MarineConditionsOptions, type MarineConditionsResponse, type MarineConditionsSeries, type MarineForecastOptions, type MarineForecastPeriod, type MarineForecastResponse, type MarineSeas, type MarineStation, type MarineSwellTrain, type MarineWind, type MarineZoneRef, NAUTICAL_SYMBOLS, NAV_AID_LAYER_GROUPS, NAV_AID_QUERY_LAYERS, NIGHT_INK, NIGHT_MUTED_INK, NON_SOLAS_DISCLAIMER, NON_SOLAS_DISCLAIMER_SHORT, type NauticalCategory, type NauticalSymbol, type NavAidInspectResult, type NavAidSettings, type NearbyMarineStation, OPAQUE_SPLIT_OF, OUTRANK_LABELS, type OfflineBundleResponse, type OfflineDownloadOptions, type OfflineDownloadProgress, type OfflineDownloadResult, OfflineError, type OfflineErrorCode, type OfflineFetchStyleOptions, type OfflineHeartbeatOptions, type OfflineRegionSummary, type OfflineRemoveOptions, OfflineStyleError, type OfflineStylePlatform, type OfflineStyleResponse, PLACENAME_LAND_CLASSES, PLACENAME_SOURCE_LAYER, PLACENAME_WATER_CLASSES, type ParsedSigseqTerms, type PmtilesVectorSource, type Poi, type PoiCoverage, type PoiDataset, type PoiOptions, type PoiResponse, type QueryFeatureProperties, type QueryOptions, type QueryResponse, RASTER_ATON_CLASSES, RASTER_GLYPH_NAMES, RASTER_ICON_PREFIX, RELIEF_ATTRIBUTION, RELIEF_ENCODING, RELIEF_REGION, RELIEF_TILE_SIZE, type ResolvedStyle, type ResolvedTheme, type S101ArtworkProvenance, type S101Feature, S101_AREA_FILL_NAMES, S101_CHART_SECTIONS, S101_FEATURES, S101_ICON_PREFIX, S101_LINE_STYLE_NAMES, S101_NEW_SYMBOLS, S101_NO_OFFICIAL_COUNTERPART, S101_SOURCE_COMMIT, S101_SYMBOL_GROUPS, S101_SYMBOL_NAMES, S52_ATON_LOOKUPS, S52_ATON_LOOKUPS_PAPER, S52_DRAW_ORDER, S52_LOOKUP, S52_PATTERN_SPRITE_PREFIX, SEAFLOOR_ATTRIBUTION, SEAFLOOR_BAKE, SEAFLOOR_LAYER_ID, SEAFLOOR_MAXZOOM, SEAFLOOR_MINZOOM, SEAFLOOR_REGION, SEAFLOOR_THEME_PAINT, SEAFLOOR_TILE_SIZE, SECTOR_ARC_LAYER_IDS, SECTOR_LEG_LAYER_IDS, SECTOR_LIGHT_LAYER_IDS, SERVED_FONT_STACKS, SERVED_SOUNDING_PADDING_PX, SIGPER_TOLERANCE_SECONDS, SIGSEQ_MAX_TERMS, SOUNDING_LAYERS, SOUNDING_PADDING_PER_FACTOR, STANDARD_CHART_SYMBOL_SCALES, STATUS_EXTINGUISHED, SYMBOL_ANNOTATION_TEXT_CLASSES, SYMBOL_GROUPS, SYMBOL_MAP, type ScaleBand, type SearchCoverageNotice, type SearchHit, type SearchOptions, type SearchResponse, type SectorArcFeature, type SectorArcFeatureCollection, type SectorInfo, type SigseqRefusal, type SigseqTerm, type SoundingSettings, type SourceMode, type StyleGeneratorOptions, type StyleLayer, type StyleUrlOptions, type SymbolGroup, TileAuth, type TileGroup, type TileGroupsResponse, TileTokenError, type TileTokenErrorCode, type TileTokenResponse, type TransformRequest, type TransformedRequest, type VectorSourceSpec, type VesselProfile, WATER_BODY_LAYER_GROUPS, WATER_TEXT_CLASSES, type WaterBodySettings, WeatherEndpoint, type WeatherReading, type WebhookEvent, type WebhookEventType, type WebhookPayload, addDangerDepthPlacers, applyBaseBundle, applyChartSymbolScales, applyChartSymbolScalesToLayer, applyChrtSymbolSet, applyColorTheme, applyCustomStyleSettings, applyEinkPortrayal, applyRasterSymbolSet, applyS101SymbolSet, atonIconExpression, bandFilterExpression, buildAirportTierExpression, buildBuiltUpAreaTierExpression, buildFlashPattern, buildLabelLayer, buildLakeTierExpression, buildLampLayers, buildLandAreaTierExpression, buildLandRegionTierExpression, buildLayersForClass, buildOfflineStyle, buildPlaceNameLayers, buildRiverTierExpression, buildSeaAreaTierExpression, buildSectorArcGeoJSON, buildSectorArcsFC, buildSectorLightLayers, buildSectorsFromFeatures, buildSources, candidateRank, capLuminance, cellBandCharacters, cellBandMatch, chartSymbolSizingCensus, chrtAtonTintExpression, chrtHouseColor, chrtLightTintExpression, clampChartSymbolScale, collectCandidates, collectClickCandidates, combineWithBandFilter, contourValueFactor, contrastRatio, copyLightDescriptionAttributes, dangerDepthPlacerId, daymarkColor, decimateFeatures, decodeAreaFeatureProps, decodeBridgeProps, decodeCandidate, decodeChartSymbolScale, decodeNavAidProps, demotedBelowSoundings, depareColor, depareFillExpression, depthAreaClassLayerId, depthAreaSplitIds, deriveMarinerName, drapeHalves, drapedFirst, extinguishedLightExpression, extractNavAidDesignation, featureIdentity, formatDayboard, formatLightDescription, formatLightRhythm, fromZoom, generateCustomStyle, generateSpriteManifest, generateSpriteSheet, generateStyle, generateStyleJSON, getAvailableLineSymbols, getAvailablePatterns, getAvailablePointSymbols, getCollisionSettings, getDrawPriority, getGridSizeForZoom, getIconExpression, getLabelBehavior, getLabelConfig, getLabelPriority, getLookupEntry, getMaxCellsForZoom, getOrderedClasses, getRasterSvg, getS52SvgString, getS52SymbolStats, getStyleStats, getSymbolSvgString, getThemedS101Svg, getThemedS52Svg, getTopmarkMeaning, haloFactor, hazardColor, hazardFillExpression, iconSliderFor, isDangerDepthPlacer, isDepthAreaClassLayerId, isDrapeable, isExtinguishedLight, isLabelLayerVisible, isMapLive, isNavAidLayer, isNavAidLayerVisible, isSectorSpriteId, isSoundingLayerVisible, isValidSiggrp, isVisibleInMode, isWaterBodyLayerVisible, keptAboveSoundings, labelSortKey, lampRhythmColour, lampRhythmOpacity, lateralColor, lateralFillExpression, lightCharacterText, lightColor, lightColourText, lightDescriptionExpression, lightDescriptionProps, lightFillExpression, lightHeightText, lightsIconExpression, normalizeStyleMode, normalizeTheme, opaqueSplitBaseOf, paginate, parseListCodes, parseSigseqTerms, parseWebhook, patternSpriteId, preprocessLights, preprocessNavAids, preprocessSoundings, preprocessWaterBodies, rasterAtonIconExpression, relativeLuminance, resolveCustomTheme, resolveRasterImage, resolveS101Color, resolveStyle, resolveTargetClass, rhythmProperties, s101ArtworkProvenance, safetyContourValues, sanitizeCustomStyleConfig, scaleLinearLight, scaleSizeExpression, scaleSizeValue, scaminToMinZoom, seafloorLayers, sectorLimitToArcBearing, semiboldFontStack, snapChartSymbolScale, soundingPadding, soundingPaddingValue, splitOpaqueDepthAreas, stepChartSymbolScale, styleModeBand, terrainStackCount, textSliderFor, themeChrtGlyph, tileTemplate, uncoveredSectorArcs, withinBboxFilter, worldMinusBboxPolygon };
|
|
6332
|
+
export { AID_TO_NAVIGATION_CLASSES, ALL_NAV_AID_LAYERS, ALL_WATER_BODY_LAYERS, AREA_QUERY_LAYERS, ATON_EXPRESSION_CLASSES, type AheadCoverageCell, type AheadFeatureProperties, type AheadOptions, type AheadResponse, type AlongRouteFeatureProperties, type AlongRouteOptions, type AlongRouteResponse, type AreaInspectResult, type AtlasStyle, type AttachOptions, BAND_CODE_ALIASES, BAND_DRAW_ORDER, BAND_PRIORITY_RANGES, BASE_ATTRIBUTION, BASE_BUNDLE_ATTRIBUTION, BASE_BUNDLE_ID, BASE_BUNDLE_MAXZOOM, BASE_BUNDLE_SCHEMA, BASE_BUNDLE_SOURCE_LAYERS, BASE_CLIENT_RASTER_BEFORE_ID, BASE_MAXZOOM, BASE_MINZOOM, BASE_REGION, type BBox, BRIDGE_QUERY_LAYERS, BUILD_MAXZOOM, BUILD_MINZOOM, BUILD_PARAM, type BandCode, type BandPriorityRange, type BridgeInspectResult, type BuildOfflineStyleOptions, type BuildSourcesOptions, CHART_BAND_CODES, CHART_CASCADE_CODES, CHART_SECTIONS, CHART_SOUNDINGS_RULE, CHART_SYMBOL_SCALE, CHART_SYMBOL_SIZES, CHART_SYMBOL_SIZE_LABELS, CHART_SYMBOL_SIZE_REACH, CHART_SYMBOL_SIZE_WIRE, CHRTRASTER_REF_CROPS, CHRTRASTER_SVGS, CHRT_ATON_COLORS, CHRT_GLYPH_NAMES, CHRT_GLYPH_SVGS, CHRT_ICON_EXPRESSIONS, CHRT_ICON_PREFIX, CHRT_SDF_GLYPHS, CHRT_STYLE_MODES, COARSE_MARK_FLOOR, COARSE_MARK_HELD_HAZARDS, type CandidateQueryOptions, type CandidatesEventContext, type CellDeletedEvent, type CellDetail, type CellEventData, type CellNewEvent, type CellUpdatedData, type CellUpdatedEvent, type CellsOptions, type CellsResponse, type ChartSection, type ChartSoundingsRule, type ChartSymbolScales, type ChartSymbolSize, Chrt, type ChrtConfig, ChrtError, type ChrtStyleMode, type ChrtStyleOptions, type ChrtStyleTheme, type ChrtSymbolSet, type ClickAnchor, ColorTableName, type CoverageOptions, type CoverageResponse, type CoverageRouteCell, type CoverageRouteOptions, type CoverageRouteResponse, type CoverageSource, type CustomStyleConfig, DANGER_DEPTH_LABEL_ID, DANGER_DEPTH_PLACER_ID, DANGER_DEPTH_PLACER_LAYOUT, DANGER_DEPTH_VISIBLE_LAYOUT, DEFAULT_CLICK_TOLERANCE, DEFAULT_CUSTOM_STYLE_CONFIG, DEFAULT_INSPECT_CLASS_RANK, DEFAULT_LABEL_SETTINGS, DEFAULT_NAV_AID_SETTINGS, DEFAULT_REGION, DEFAULT_SAFETY_CONTOUR_M, DEFAULT_SOUNDING_SETTINGS, DEFAULT_TILE_BASE_URL, DEFAULT_TILE_REGION, DEFAULT_WATER_BODY_SETTINGS, DEPARE_FILL_BRANCH_TOKENS, DEPARE_FILL_FALLBACK_TOKEN, DEPTH_FIGURE_CLASSES, DRAPEABLE_LAYER_TYPES, type DecodeNavAidOptions, type DecodedAreaFeature, type DecodedBridge, type DecodedDayboard, type DecodedNavAid, type DecodedProperty, type DisplayCategory, type DisplayMode, EINK_DANGER_PATTERN, EINK_DOTS_PATTERN, EINK_HATCH_PATTERN, type FeatureCollection, type FeaturesOptions, type FetchStyleOptions, FileSystemAdapter, type FlashPattern, type FlashPhase, type GenerateCustomStyleOptions, type GeneratedCustomStyle, type GeoJsonFeature, type GeoJsonGeometry, type GeomType, HAZARD_LABEL_PRIORITY, INSPECT_CLASS_RANK, INSPECT_RANK_DEVIATIONS, IS_SECTOR_LIGHT, type InspectCandidate, type InspectCandidateSet, type InspectEnrichment, type InspectEventContext, type InspectNotice, type InspectOptions, type InspectResult, type InspectTargetClass, type InspectableFeature, InteractClient, type InteractEntitlement, InteractError, type InteractErrorCode, type InteractHandle, type InteractMapLike, type InteractMapMouseEvent, LABELED_LAYERS, LABEL_BEHAVIOR, LABEL_LAYER_GROUPS, LABEL_PRIORITY, LAMP_CORE_LAYER_ID, LAMP_GLOW_LAYER_ID, LAMP_LAYER_IDS, LAMP_TICK_MS, LAND_ATTRIBUTION, LAND_BUILD_MAXZOOM, LAND_REGION, LAND_TEXT_CLASSES, LIGHTHOUSE_NAME_FILTER, LIGHTHOUSE_NAME_LABEL_PRIORITY, LIGHT_LABEL_FEET_PER_METRE, type LabelBehavior, type LabelConfigOptions, type LabelLayerConfig, type LabelSettings, type LampLayer, type LightDescriptionOptions, type LightHeightUnits, type LookupEntry, MAPLIBRE_DEFAULT_TEXT_PADDING_PX, type MapLibreStyle, type MapboxStyle, type MapboxVectorSource, type MarineAlert, type MarineAlertsOptions, type MarineAlertsResponse, type MarineConditionsObservation, type MarineConditionsOptions, type MarineConditionsResponse, type MarineConditionsSeries, type MarineForecastOptions, type MarineForecastPeriod, type MarineForecastResponse, type MarineSeas, type MarineStation, type MarineSwellTrain, type MarineWind, type MarineZoneRef, NAUTICAL_SYMBOLS, NAV_AID_LAYER_GROUPS, NAV_AID_QUERY_LAYERS, NIGHT_INK, NIGHT_MUTED_INK, NON_SOLAS_DISCLAIMER, NON_SOLAS_DISCLAIMER_SHORT, type NauticalCategory, type NauticalSymbol, type NavAidInspectResult, type NavAidSettings, type NearbyMarineStation, OPAQUE_SPLIT_OF, OUTRANK_LABELS, type OfflineBundleResponse, type OfflineDownloadOptions, type OfflineDownloadProgress, type OfflineDownloadResult, OfflineError, type OfflineErrorCode, type OfflineFetchStyleOptions, type OfflineHeartbeatOptions, type OfflineRegionSummary, type OfflineRemoveOptions, OfflineStyleError, type OfflineStylePlatform, type OfflineStyleResponse, PLACENAME_LAND_CLASSES, PLACENAME_SOURCE_LAYER, PLACENAME_WATER_CLASSES, type ParsedSigseqTerms, type PmtilesVectorSource, type Poi, type PoiCoverage, type PoiDataset, type PoiOptions, type PoiResponse, type QueryFeatureProperties, type QueryOptions, type QueryResponse, RASTER_ATON_CLASSES, RASTER_GLYPH_NAMES, RASTER_ICON_PREFIX, RELIEF_ATTRIBUTION, RELIEF_ENCODING, RELIEF_REGION, RELIEF_TILE_SIZE, type ResolvedStyle, type ResolvedTheme, type S101ArtworkProvenance, type S101Feature, S101_AREA_FILL_NAMES, S101_CHART_SECTIONS, S101_FEATURES, S101_ICON_PREFIX, S101_LINE_STYLE_NAMES, S101_NEW_SYMBOLS, S101_NO_OFFICIAL_COUNTERPART, S101_SOURCE_COMMIT, S101_SYMBOL_GROUPS, S101_SYMBOL_NAMES, S52_ATON_LOOKUPS, S52_ATON_LOOKUPS_PAPER, S52_DRAW_ORDER, S52_LOOKUP, S52_PATTERN_SPRITE_PREFIX, SEAFLOOR_ATTRIBUTION, SEAFLOOR_BAKE, SEAFLOOR_LAYER_ID, SEAFLOOR_MAXZOOM, SEAFLOOR_MINZOOM, SEAFLOOR_REGION, SEAFLOOR_THEME_PAINT, SEAFLOOR_TILE_SIZE, SECTOR_ARC_LAYER_IDS, SECTOR_LEG_LAYER_IDS, SECTOR_LIGHT_LAYER_IDS, SERVED_FONT_STACKS, SERVED_SOUNDING_PADDING_PX, SIGPER_TOLERANCE_SECONDS, SIGSEQ_MAX_TERMS, SOUNDING_LAYERS, SOUNDING_PADDING_PER_FACTOR, STANDARD_CHART_SYMBOL_SCALES, STATUS_EXTINGUISHED, SYMBOL_ANNOTATION_TEXT_CLASSES, SYMBOL_GROUPS, SYMBOL_MAP, type ScaleBand, type SearchCoverageNotice, type SearchHit, type SearchOptions, type SearchResponse, type SectorArcFeature, type SectorArcFeatureCollection, type SectorInfo, type SigseqRefusal, type SigseqTerm, type SoundingSettings, type SourceMode, type StyleGeneratorOptions, type StyleLayer, type StyleUrlOptions, type SymbolGroup, TileAuth, type TileGroup, type TileGroupsResponse, TileTokenError, type TileTokenErrorCode, type TileTokenResponse, type TransformRequest, type TransformedRequest, type VectorSourceSpec, type VesselProfile, WATER_BODY_LAYER_GROUPS, WATER_TEXT_CLASSES, type WaterBodySettings, WeatherEndpoint, type WeatherReading, type WebhookEvent, type WebhookEventType, type WebhookPayload, addDangerDepthPlacers, applyBaseBundle, applyChartSymbolScales, applyChartSymbolScalesToLayer, applyChrtSymbolSet, applyColorTheme, applyCustomStyleSettings, applyEinkPortrayal, applyRasterSymbolSet, applyS101SymbolSet, atonIconExpression, bandFilterExpression, bandFloorGate, buildAirportTierExpression, buildBuiltUpAreaTierExpression, buildFlashPattern, buildLabelLayer, buildLakeTierExpression, buildLampLayers, buildLandAreaTierExpression, buildLandRegionTierExpression, buildLayersForClass, buildOfflineStyle, buildPlaceNameLayers, buildRiverTierExpression, buildSeaAreaTierExpression, buildSectorArcGeoJSON, buildSectorArcsFC, buildSectorLightLayers, buildSectorsFromFeatures, buildSources, candidateRank, capLuminance, cellBandCharacters, cellBandMatch, chartSymbolSizingCensus, chrtAtonTintExpression, chrtHouseColor, chrtLightTintExpression, clampChartSymbolScale, collectCandidates, collectClickCandidates, combineWithBandFilter, contourValueFactor, contrastRatio, copyLightDescriptionAttributes, dangerDepthPlacerId, daymarkColor, decimateFeatures, decodeAreaFeatureProps, decodeBridgeProps, decodeCandidate, decodeChartSymbolScale, decodeNavAidProps, demotedBelowSoundings, depareColor, depareFillExpression, depthAreaClassLayerId, depthAreaSplitIds, deriveMarinerName, drapeHalves, drapedFirst, extinguishedLightExpression, extractNavAidDesignation, featureIdentity, formatDayboard, formatLightDescription, formatLightRhythm, fromZoom, generateCustomStyle, generateSpriteManifest, generateSpriteSheet, generateStyle, generateStyleJSON, getAvailableLineSymbols, getAvailablePatterns, getAvailablePointSymbols, getCollisionSettings, getDrawPriority, getGridSizeForZoom, getIconExpression, getLabelBehavior, getLabelConfig, getLabelPriority, getLookupEntry, getMaxCellsForZoom, getOrderedClasses, getRasterSvg, getS52SvgString, getS52SymbolStats, getStyleStats, getSymbolSvgString, getThemedS101Svg, getThemedS52Svg, getTopmarkMeaning, haloFactor, hazardColor, hazardFillExpression, iconSliderFor, isDangerDepthPlacer, isDepthAreaClassLayerId, isDrapeable, isExtinguishedLight, isLabelLayerVisible, isMapLive, isNavAidLayer, isNavAidLayerVisible, isSectorSpriteId, isSoundingLayerVisible, isValidSiggrp, isVisibleInMode, isWaterBodyLayerVisible, keptAboveSoundings, labelSortKey, lampRhythmColour, lampRhythmOpacity, lateralColor, lateralFillExpression, lightCharacterText, lightColor, lightColourText, lightDescriptionExpression, lightDescriptionProps, lightFillExpression, lightHeightText, lightsIconExpression, normalizeStyleMode, normalizeTheme, opaqueSplitBaseOf, paginate, parseListCodes, parseSigseqTerms, parseWebhook, patternSpriteId, preprocessLights, preprocessNavAids, preprocessSoundings, preprocessWaterBodies, rasterAtonIconExpression, relativeLuminance, resolveCustomTheme, resolveRasterImage, resolveS101Color, resolveStyle, resolveTargetClass, rhythmProperties, s101ArtworkProvenance, safetyContourValues, sanitizeCustomStyleConfig, scaleLinearLight, scaleSizeExpression, scaleSizeValue, scaminToMinZoom, seafloorLayers, sectorLimitToArcBearing, semiboldFontStack, snapChartSymbolScale, soundingPadding, soundingPaddingValue, splitOpaqueDepthAreas, stepChartSymbolScale, styleModeBand, terrainStackCount, textSliderFor, themeChrtGlyph, tileTemplate, uncoveredSectorArcs, withinBboxFilter, worldMinusBboxPolygon };
|
package/dist/index.js
CHANGED
|
@@ -31188,7 +31188,10 @@ var SERVED_FONT_STACKS = [
|
|
|
31188
31188
|
"Open Sans Semibold",
|
|
31189
31189
|
"Old Standard TT Regular",
|
|
31190
31190
|
"Old Standard TT Italic",
|
|
31191
|
-
"Old Standard TT Bold"
|
|
31191
|
+
"Old Standard TT Bold",
|
|
31192
|
+
"Liberation Sans Regular",
|
|
31193
|
+
"Liberation Sans Italic",
|
|
31194
|
+
"Liberation Sans Bold"
|
|
31192
31195
|
];
|
|
31193
31196
|
function semiboldFontStack(font) {
|
|
31194
31197
|
if (!Array.isArray(font) || !font.every((face) => typeof face === "string")) return font;
|
|
@@ -31619,8 +31622,54 @@ function bandVariantMinzoom(layer, B) {
|
|
|
31619
31622
|
if (isGroundFill(layer)) {
|
|
31620
31623
|
return BAND_PRIORITY_RANGES[B].minzoom;
|
|
31621
31624
|
}
|
|
31625
|
+
if (COARSE_MARK_BANDS.has(B) && isCoarseNonAidMark(layer)) {
|
|
31626
|
+
return Math.max(classMinzoom, BAND_PRIORITY_RANGES[B].minzoom, COARSE_MARK_FLOOR);
|
|
31627
|
+
}
|
|
31622
31628
|
return Math.max(classMinzoom, BAND_PRIORITY_RANGES[B].minzoom);
|
|
31623
31629
|
}
|
|
31630
|
+
var AID_TO_NAVIGATION_CLASSES = /* @__PURE__ */ new Set([
|
|
31631
|
+
"BOYLAT",
|
|
31632
|
+
"BOYCAR",
|
|
31633
|
+
"BOYSPP",
|
|
31634
|
+
"BOYISD",
|
|
31635
|
+
"BOYSAW",
|
|
31636
|
+
"BOYINB",
|
|
31637
|
+
"BCNLAT",
|
|
31638
|
+
"BCNCAR",
|
|
31639
|
+
"BCNSPP",
|
|
31640
|
+
"BCNISD",
|
|
31641
|
+
"BCNSAW",
|
|
31642
|
+
"LIGHTS",
|
|
31643
|
+
"LITFLT",
|
|
31644
|
+
"LITVES",
|
|
31645
|
+
"FOGSIG",
|
|
31646
|
+
"TOPMAR",
|
|
31647
|
+
"DAYMAR",
|
|
31648
|
+
"RTPBCN",
|
|
31649
|
+
"RDOSTA",
|
|
31650
|
+
"RADRFL",
|
|
31651
|
+
"RETRFL"
|
|
31652
|
+
]);
|
|
31653
|
+
var COARSE_MARK_BANDS = /* @__PURE__ */ new Set(["1", "2"]);
|
|
31654
|
+
var COARSE_MARK_HELD_HAZARDS = /* @__PURE__ */ new Set(["WRECKS", "OBSTRN", "UWTROC"]);
|
|
31655
|
+
var COARSE_MARK_FLOOR = BAND_PRIORITY_RANGES["3"].minzoom;
|
|
31656
|
+
function bandFloorGate() {
|
|
31657
|
+
return [
|
|
31658
|
+
"any",
|
|
31659
|
+
...BAND_DRAW_ORDER.map((B) => {
|
|
31660
|
+
const floor = BAND_PRIORITY_RANGES[B].minzoom;
|
|
31661
|
+
return floor > 0 ? ["all", bandFilterExpression(B), [">=", ["zoom"], floor]] : bandFilterExpression(B);
|
|
31662
|
+
})
|
|
31663
|
+
];
|
|
31664
|
+
}
|
|
31665
|
+
function isCoarseNonAidMark(layer) {
|
|
31666
|
+
if (layer.type !== "symbol" && layer.type !== "circle") return false;
|
|
31667
|
+
const cls = /^s52-([A-Za-z]{6})(?:-|$)/.exec(layer.id)?.[1]?.toUpperCase();
|
|
31668
|
+
if (!cls || cls === "SOUNDG" || AID_TO_NAVIGATION_CLASSES.has(cls) || COARSE_MARK_HELD_HAZARDS.has(cls)) return false;
|
|
31669
|
+
if (layer.type === "circle") return true;
|
|
31670
|
+
const layout = layer.layout;
|
|
31671
|
+
return typeof layout === "object" && layout !== null && "icon-image" in layout;
|
|
31672
|
+
}
|
|
31624
31673
|
var GENERALISED_AREA_FILL_CLASSES = /* @__PURE__ */ new Set([
|
|
31625
31674
|
"BUAARE",
|
|
31626
31675
|
// 2026-08-28, New York Harbor: the "New York Marine Inspection Zone and
|
|
@@ -32744,7 +32793,11 @@ function generateStyle(palette = "DAY", opts = {}) {
|
|
|
32744
32793
|
}
|
|
32745
32794
|
}
|
|
32746
32795
|
}
|
|
32747
|
-
|
|
32796
|
+
const sectorGate = bandFloorGate();
|
|
32797
|
+
layers.push(
|
|
32798
|
+
...sectorLightLayers.map((l) => ({ ...l, filter: combineWithBandFilter(l.filter, sectorGate) })),
|
|
32799
|
+
...lampLayers
|
|
32800
|
+
);
|
|
32748
32801
|
{
|
|
32749
32802
|
const TERMINAL_FILL_RE = new RegExp(
|
|
32750
32803
|
`^s52-(?:${[...DOMINANCE_EXEMPT_FILL_CLASSES].join("|")})-fill-band[456]$`
|
|
@@ -33950,6 +34003,7 @@ var Chrt = class {
|
|
|
33950
34003
|
}
|
|
33951
34004
|
};
|
|
33952
34005
|
export {
|
|
34006
|
+
AID_TO_NAVIGATION_CLASSES,
|
|
33953
34007
|
ALL_NAV_AID_LAYERS,
|
|
33954
34008
|
ALL_WATER_BODY_LAYERS,
|
|
33955
34009
|
AREA_QUERY_LAYERS,
|
|
@@ -33989,6 +34043,8 @@ export {
|
|
|
33989
34043
|
CHRT_ICON_PREFIX,
|
|
33990
34044
|
CHRT_SDF_GLYPHS,
|
|
33991
34045
|
CHRT_STYLE_MODES,
|
|
34046
|
+
COARSE_MARK_FLOOR,
|
|
34047
|
+
COARSE_MARK_HELD_HAZARDS,
|
|
33992
34048
|
Chrt,
|
|
33993
34049
|
ChrtError,
|
|
33994
34050
|
DANGER_DEPTH_LABEL_ID,
|
|
@@ -34121,6 +34177,7 @@ export {
|
|
|
34121
34177
|
applyS101SymbolSet,
|
|
34122
34178
|
atonIconExpression,
|
|
34123
34179
|
bandFilterExpression,
|
|
34180
|
+
bandFloorGate,
|
|
34124
34181
|
buildAirportTierExpression,
|
|
34125
34182
|
buildBuiltUpAreaTierExpression,
|
|
34126
34183
|
buildFlashPattern,
|