Skip to content

Offline map #94

Answered by bdon
wipfli asked this question in Q&A
Nov 10, 2022 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

Run a local HTTP server.

The other option is to use the file:// protocol, but this requires user interaction to access the filesystem for security reasons.

The base64 idea could also work but seems like it would be pretty ugly after a few megabytes. You'd have to write a new class implementing the Source interface that is backed by a simple ArrayBuffer loaded from the base64 string.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@wipfli
Comment options

wipfli Nov 10, 2022
Author Sponsor

@wipfli
Comment options

wipfli Nov 10, 2022
Author Sponsor

@wipfli
Comment options

wipfli Nov 10, 2022
Author Sponsor

@bdon
Comment options

bdon Nov 11, 2022
Maintainer

@wipfli
Comment options

wipfli Nov 11, 2022
Author Sponsor

Answer selected by wipfli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants