Skip to content

Support for air-gapped/offline environments - CDN dependencies #160

@yharby

Description

@yharby

Summary

Some features in py-maplibregl require external CDN resources at runtime, which may not work in air-gapped or restricted network environments (common in enterprise/government organizations).

Current CDN Dependencies

When using certain features, the following are loaded from CDN:

Deck.GL integration (add_deck_layers):

  • h3-js from unpkg.com
  • deck.gl from unpkg.com
  • @deck.gl/json from unpkg.com

MapboxDraw integration (add_mapbox_draw):

  • mapbox-gl-draw JS from unpkg.com
  • mapbox-gl-draw CSS from unpkg.com

Question for Discussion

Would it be useful to bundle these dependencies for offline usage, similar to how the RTL text plugin was recently bundled in PR #159?

This would increase the package size but enable full offline functionality for users in restricted network environments.

Interested to hear your thoughts on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions