[fix] Remove custom world-wrap code in favour of worldCopyJump: true#739
[fix] Remove custom world-wrap code in favour of worldCopyJump: true#739pushpitkamboj wants to merge 2 commits intoopenwisp:masterfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
WalkthroughThe change removes 45 lines of custom horizontal wrap/dateline wrapping logic from the device map's JavaScript file. This includes the deletion of the Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
nemesifier
left a comment
There was a problem hiding this comment.
How can this possibly work? Is the new version of netjsongraph.js already included?
|
No, it dosent. You are right can I update it by cloning the netjsongraph.js repo, running npm install && npm run build, and replacing the existing file with the output from dist/netjsongraph.min.js. Does that approach work? Please validate. |
|
@pushpitkamboj let's wait for #738, but please STOP sending PRs with code you haven't tested manually, this is really unprofessional and generates overhead. |
Checklist
Reference to Existing Issue
Closes #719
Description of Changes
Removed the custom
moveendlistener andsetMaxBoundscall fromdevice-map.jsthat were manually cloning and shifting map featuresby ±360° when panning past the international date line.
This is no longer needed since openwisp/netjsongraph.js#466 has been
merged, which sets
worldCopyJump: trueby default in Leaflet,handling world-wrap behaviour natively.