feat: localIdeographFontFamily: false

This commit is contained in:
Kanahiro
2024-03-25 21:55:25 +09:00
parent ff15b77b7f
commit 1a266e8a5c
+5 -1
View File
@@ -133,7 +133,11 @@ export default class MapMaplibreGl extends React.Component<MapMaplibreGlProps, M
container: this.container!,
style: this.props.mapStyle,
hash: true,
maxZoom: 24
maxZoom: 24,
// setting to always load glyphs of CJK fonts from server
// https://maplibre.org/maplibre-gl-js/docs/examples/local-ideographs/
// typedef of MapLibreGl.MapOptions doesn't accept boolean but this follow the doc.
localIdeographFontFamily: false as any,
}
const map = new MapLibreGl.Map(mapOpts);