Compare commits

...

2 Commits

Author SHA1 Message Date
Kanahiro ade6ce03a0 rm trailing comma 2024-03-25 22:08:46 +09:00
Kanahiro 1a266e8a5c feat: localIdeographFontFamily: false 2024-03-25 21:55:25 +09:00
+5 -1
View File
@@ -133,7 +133,11 @@ export default class MapMaplibreGl extends React.Component<MapMaplibreGlProps, M
container: this.container!, container: this.container!,
style: this.props.mapStyle, style: this.props.mapStyle,
hash: true, 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); const map = new MapLibreGl.Map(mapOpts);