Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions docs/docs/limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ result is **best effort**:
so a label mixing scripts still draws its fallback glyphs from the bundled
face there. A host that supplies its own face through the surface callbacks is
unaffected.
- **A chart states more than four languages.** The bake runs a portrayal pass
per language and stores a text property per language, so it keeps the first
four it finds and drops the rest.

- **Overscale hatch occlusion is tile-path only.** The S-52 §10.1.10 overscale
indication (`OVERSC01`, see [architecture](./architecture.md)) is gated
correctly everywhere, but only the generated MapLibre style sandwiches the
Expand Down
7 changes: 0 additions & 7 deletions src/s101/adapter.zig
Original file line number Diff line number Diff line change
Expand Up @@ -782,12 +782,6 @@ fn buildSurveyDateRange(a: std.mem.Allocator, children: *std.ArrayList(ChildEntr
/// they first appear. An S-57 cell yields at most `und`, because the adapter
/// tags NOBJNM that way and S-57 records no language for it. A native S-101
/// dataset yields its real ISO 639-2 codes.
///
/// Capped, because each one costs a portrayal pass at bake time and a text
/// property per label in the tile. A chart naming its features in more
/// languages than this keeps the first few.
pub const max_languages = 4;

pub fn languages(a: std.mem.Allocator, adapted: []const Adapted) ![]const []const u8 {
var out = std.ArrayList([]const u8).empty;
for (adapted) |ad| {
Expand All @@ -802,7 +796,6 @@ pub fn languages(a: std.mem.Allocator, adapted: []const Adapted) ![]const []cons
}
if (seen) continue;
try out.append(a, lang);
if (out.items.len == max_languages) return out.items;
}
}
return out.items;
Expand Down
Loading