mirror of
https://github.com/maputnik/editor.git
synced 2025-12-31 02:20:02 +00:00
localIdeographFontFamily: false to load CJK fonts (#893)
close #892 this changes works well for CJK fonts. <img width="736" alt="Screenshot 2024-03-25 at 22 04 36" src="https://github.com/maplibre/maputnik/assets/20744195/adb0295e-5428-4773-b216-8f380e2dcb05">
This commit is contained in:
@@ -133,8 +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/
|
||||
localIdeographFontFamily: false
|
||||
} satisfies MapOptions;
|
||||
|
||||
const map = new MapLibreGl.Map(mapOpts);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user