Conversation
FileUtils.mkdir_p('_data') の行を削除。
_data ディレクトリは既にGitリポジトリに存在するため、
明示的に作成する必要がない。
## 変更内容 - compact_geojson.rb: dojos.min.geojson を生成するように修正 - index.html / world.html: dojos.min.geojson を使用するように更新 - Rakefile: compact_geojson タスクを追加 - GitHub Actions: 最小化処理とコミット対象にdojos.min.geojsonを追加 ## 効果 - ファイルサイズ: 737KB → 568KB(23%削減) - 地図の読み込み速度が向上 - 開発用の整形版(dojos.geojson)は維持
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.
概要
地図表示のパフォーマンス向上のため、最小化版のGeoJSONファイル(
dojos.min.geojson)を生成・使用するように変更しました。変更内容
compact_geojson.rb:dojos.min.geojsonを生成するように修正index.html/world.html:dojos.min.geojsonを使用するように更新Rakefile:compact_geojsonタスクを追加compact_geojsonタスクの実行を追加dojos.min.geojsonをコミット対象に追加パフォーマンス改善
メリット
dojos.geojson)はデバッグ用に維持テスト
bundle exec rake compact_geojsonの動作確認dojos.min.geojsonのサイズ削減を確認dojos.min.geojsonを参照することを確認