Skip to content

Vendor Leaflet.js Locally (Remove CDN) #37

@w2naf

Description

@w2naf

Description

Leaflet.js is currently loaded from a CDN, which violates the offline-first requirements (FR-OFF-01, FR-OFF-03, FR-OFF-04). Download Leaflet.js and its CSS and serve them locally from the repository.

Steps

  1. Download the current version of Leaflet.js and Leaflet CSS
  2. Place files in an appropriate vendor directory (e.g., static/vendor/leaflet/)
  3. Include Leaflet marker icon images locally
  4. Update HTML templates to reference local files instead of CDN URLs
  5. Verify the map loads correctly without any network requests to external servers

Acceptance Criteria

  • Leaflet JS and CSS served from local files
  • Leaflet marker icons served locally
  • No external CDN requests in browser network tab
  • Map view fully functional

Requirements Reference

  • FR-OFF-01: Function completely without internet
  • FR-OFF-03: All JavaScript libraries vendored
  • FR-OFF-04: All CSS frameworks vendored

Blocked By

Milestone

Milestone 1: Minimal Working System (Feb 28)

Metadata

Metadata

Assignees

Labels

blockerBlocks other workmilestone-1Due Feb 28 - Minimal Working Systemoffline-firstRelated to offline/LAN-only operation requirement

Type

No type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions