-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
避難所の数を表示したい #8
Comments
現状理想形https://maplibre.org/maplibre-gl-js-docs/example/cluster/consoleのエラー
なぜエラーがおきているのかの予想非同期処理がうまく行っていないのかもと予想。非同期処理とは何なのかをまずは理解する必要あり 参考になりそうな資料 |
非同期処理の理解ができていなかった。非同期処理の構造を理解できていなかったためのエラーだった。コードを書き直したところ以下のような表示になった。 openmaptilesの提供するフォントから選ばなきゃいけないっぽい。 |
フォントエラーの詳細MapLibre GL JS Style Specificationによると、テキストフォントは設定しなければ自動的にOpen Sans Regular,Arial Unicode MS Regularになる仕様になっている。 MapLibre GL JS が用意しているstyle.jsonを使えば問題ないが、今回の場合は独自でstyle.jsonを作っている。今回使用しているstyle.jsonの中身を見るとフォントはopenmaptilesから取ってきていることがわかった。
以下のフォントファミリーからフォントを指定してあげることで、無事解決した。
|
No description provided.
The text was updated successfully, but these errors were encountered: