本番マーカーを CoderDojo ロゴに切替(+ 全HTMLへのキー注入修正) - #30
Merged
Merged
Conversation
Geolonia スプライト サーバ復旧後に CoderDojo ロゴ マーカーへ戻すための変更。 - _config.yml: marker: default -> coderdojo - dojos.geojson: marker-symbol で再生成⚠️ マージ前提条件(重要): このモードは Geolonia スプライト サーバ依存。現在は 502 障害中かつ 'coderdojo' シンボルが標準スプライトに無いため、今マージするとマーカーが 再び全滅する。下記が満たされるまでマージしないこと: GEOLONIA_API_KEY=xxxx bundle exec rake test_sprite が完全パス(スプライトが 200 を返し、かつ 'coderdojo' シンボルを含む) することを確認してからマージする。
index.html / world.html だけでなく、テストページ /default.html /coderdojo.html (および今後の地図ページ)にも Geolonia API キーを注入する。 これまで注入対象が index/world のみだったため、テストページは YOUR-API-KEY の まま配信され、本番で地図タイルが表示されなかった(マーカーのみ表示)。 プレースホルダを含む全 HTML を grep で対象にして解消する。
yasulab
marked this pull request as ready for review
July 3, 2026 09:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
本番の地図マーカーを CoderDojo ロゴ(
marker-symbol: coderdojo)に切り替える。円マーカー(#28)はスプライト障害中の暫定対応であり、ロゴが DojoMap 本来の姿。経緯
coderdojoが読めずマーカー全滅 → 地図マーカー消失を修正: スプライト非依存の円マーカーに切替 #28 で円マーカーに退避(本番復活)coderdojoスプライトを再アップロード → スプライトシートが再生成されcoderdojoが復活(localhost の有効キーでロゴ描画を確認)変更内容
_config.ymlmarker: default → coderdojo(本番 index.html がロゴに)dojos.geojsonmarker-symbol: coderdojoで再生成(最新データ反映).github/workflows/deploy_to_pages.yml③ の詳細(重要な不具合修正)
デプロイ workflow は Geolonia API キーを
index.html/world.htmlにしか注入しておらず、テストページ(/default.html/coderdojo.html)はYOUR-API-KEYのまま配信されていた。そのためテストページで地図タイルが表示されない(マーカーのみ)状態だった。プレースホルダを含む全 HTML をgrepで対象にして解消する。将来追加する地図ページも自動対応。検証
coderdojoのロゴ描画を確認grep/置換ループをローカルで検証し、index/world/default/coderdojo すべてにキーが入ることを確認rake testGREEN(test_default_mode_is_sprite_independentは coderdojo モードのため skip)マージ後の確認
/coderdojo.html/test.htmlも③の修正で地図が出るようになるmarker: defaultに戻す)関連