You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
#10522 introduces support for local generation of ideographic glyphs. For maps that use lots of CJK glyphs, this can lead to a dramatic reduction in data usage. The Android and iOS implementations of MapSnapshotter don't currently take advantage of this setting, so for a CJK user using the local override, a map might load with 1MB worth of data, but taking a snapshot of that map might require downloading an extra 10MB of glyph data.
HeadlessFrontend already supports a localFontFamily argument, so the only change to portable code required here is to pass that argument through the MapSnapshotter constructor.
The Android implementation will need to expose an appropriate option to the Java MapSnapshotter class. The iOS implementation may take advantage of the existing MGLIdeographicFontFamily setting in Info.plist.
#10522 introduces support for local generation of ideographic glyphs. For maps that use lots of CJK glyphs, this can lead to a dramatic reduction in data usage. The Android and iOS implementations of
MapSnapshotterdon't currently take advantage of this setting, so for a CJK user using the local override, a map might load with 1MB worth of data, but taking a snapshot of that map might require downloading an extra 10MB of glyph data.HeadlessFrontendalready supports alocalFontFamilyargument, so the only change to portable code required here is to pass that argument through theMapSnapshotterconstructor.The Android implementation will need to expose an appropriate option to the Java
MapSnapshotterclass. The iOS implementation may take advantage of the existingMGLIdeographicFontFamilysetting inInfo.plist.