Repository navigation
「此刻」改成真实地图(Leaflet + OpenStreetMap) - #88
Merged
Merged
Conversation
自托管 Leaflet 1.9.4,有位置时才动态加载;OSM 瓦片只在 /travel/ 的 CSP img-src 里放开,瓦片图单独带 referrerPolicy origin。位置点是金点加一圈 6 km 的模糊范围,缩放封顶 11。删掉旧行踪图的墨卡托拟合。 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
做了什么
js/leaflet/、styles/leaflet.css),OpenStreetMap 瓦片,有位置时才动态加载。/travel/的 CSPimg-src增加https://tile.openstreetmap.org,其他页面不变;瓦片图单独带referrerPolicy: 'origin'(站点默认same-origin会让 OSM 拒掉无来源请求)。travel-map-v4引用。验证
npm test131/131 通过,新增一条 CSP / 自托管断言。部署
合并后还需手动拷到 Mac(没有自动部署);
js/leaflet/路径要上线后确认 Cloudflare 不拦。🤖 Generated with Claude Code