Skip to content

Add standalone mapscale() function#1918

Merged
joa-quim merged 1 commit into
masterfrom
add-mapscale-function
Feb 17, 2026
Merged

Add standalone mapscale() function#1918
joa-quim merged 1 commit into
masterfrom
add-mapscale-function

Conversation

@joa-quim

Copy link
Copy Markdown
Member

Summary

  • Add mapscale() / mapscale!() convenience function that wraps basemap for drawing map scale bars (-L)
  • All scale sub-options (anchor, scale_at_lat, length, fancy, label, align, units, vertical, etc.) are top-level kwargs
  • Uses the Dict-based dispatch pattern (no kwargs in the main function) to avoid recompilation
  • Defaults to frame=:none so only the scale bar is drawn

Test plan

  • Standalone with explicit R/J and inside/anchor placement
  • Overlay mode (mapscale!) reusing existing plot R/J
  • Default frame=:none (no axes drawn)
  • Options: units, align, label, fancy, box

🤖 Generated with Claude Code

Convenience wrapper around basemap that draws map scale bars (-L).
Extracts scale-specific options (anchor, scale_at_lat, length, fancy,
label, align, units, etc.) as top-level kwargs. Uses Dict-based dispatch
pattern to avoid recompilation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Feb 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.52%. Comparing base (5be0b89) to head (3740b77).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1918      +/-   ##
==========================================
- Coverage   85.79%   85.52%   -0.27%     
==========================================
  Files         186      186              
  Lines       27510    27157     -353     
==========================================
- Hits        23601    23226     -375     
- Misses       3909     3931      +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joa-quim joa-quim merged commit 8913842 into master Feb 17, 2026
4 of 7 checks passed
@joa-quim joa-quim deleted the add-mapscale-function branch February 17, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants