Comments (4)
I believe you could define the type as string | false
, would that work?
from maplibre-gl-js.
Probably because of this line:
maplibre-gl-js/src/render/glyph_manager.ts
Line 124 in f6035db
I'm not against changing the code parts to align with the new definition.
from maplibre-gl-js.
This constructor only treat localIdeographFontFamily
as string | null
and this is not correspond to type of the class variable. Other localIdeographFontFamily
seems to be string?
.
current behavior of localIdeographFontFamily
is:
- not defined: CJK fonts not loaded local or server, because there is default value
san-serif
. string
: load local fonts name defined as string.false
: load CJK fonts from server, because this is falsy.- defined as
undefined
: load CJK fonts from server, because this is falsy.
if this has misunderstanding, plz point it :)
from maplibre-gl-js.
I wrote changes to typedefs and it would work but I cannot understand yet why there are difference in behavior between 'undefined' and 'false'.
understood, #3895 (comment)
from maplibre-gl-js.
Related Issues (20)
- WebGL 1 phase out HOT 3
- Layer `type` change causing a full map reload HOT 5
- Text overlaps on some phone models HOT 1
- Strange results of `raster-contrast` paint property HOT 3
- Id missing on MapGeoJsonFeature on map.on('click', layerid, event) HOT 2
- App using terrain (raster-dem) crashes when zooming out after zooming in quickly HOT 3
- Raster tiles are much lower detail when terrain is enabled HOT 12
- How to use raster source with varying zoom levels? HOT 7
- standard-minifier-js of Meteor.js remove Promise HOT 2
- Map freeze if easeTo during move event HOT 7
- Missing documentation: Popup Constructor and PopupOptions
- on load method: Occasionally the load method does not trigger a callback HOT 17
- MapLibre stops responding with weird, seemingly unrelated error message HOT 2
- Sustitute placeholder images from placekitten.com
- Ability to modify the map background HOT 1
- setLayoutProperty trigger blink of map layer HOT 2
- Add the actual projection matrix to transform HOT 5
- Is it time to move to ES2017 and how HOT 4
- preserveDrawingBuffer and marker dragging breaks down rendering HOT 2
- Geojson Circle broken / even on example page HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maplibre-gl-js.