Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cache Google map in Service Worker #713

432i started this conversation in General
Mar 13, 2025 · 1 comments · 1 reply
Discussion options

is it possible to cache the map in service worker so my app can work offline? someone can share how to do this?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

It might be possible to some extent, but I'm pretty sure it would be violating the terms of service.

Besides that, I have never seen someone successfully doing that with the Google Maps API.
If offline capability is a requirement for your project, I would recommend looking into maplibregl-js and our sister project react-map-gl. With maplibre it is at least very plausible to build a fully offline capable map experience.

You must be logged in to vote
1 reply
Comment options

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /