QUICK SETUP
Deploy your existing index.html and sw.js so Photo on Maps runs exactly like your local build.
Photoonmaps.com is designed to start from the files you already have on your laptop—especially index.html and sw.js—so the map, photo loading, and offline caching behave the same way once the site is live.
Keep the deployment simple: upload index.html to the site root, place sw.js at the same root path it expects, and confirm your registerServiceWorker code points to /sw.js. After you publish, do a hard refresh, open DevTools → Application → Service Workers, and verify the worker is installed and controlling the page.
This Setup page is intentionally practical and vendor-neutral: use any static hosting that serves your root files as-is, supports HTTPS, and lets you set correct cache headers. If you run into issues, the fastest fix is usually matching paths (/, /sw.js) and clearing old service worker caches before retesting.
Upload your existing site files
Start with what you already have: your local index.html and sw.js. Add them to the project exactly as-is, keep filenames unchanged, and include any folders they reference (images, data, CSS, JS). Once uploaded, the deployed site will serve your original HTML and register the service worker so the map experience behaves the same as on your laptop.
Deploy with service worker intact
Service workers are picky about paths and scope. Place sw.js at the site root, make sure index.html registers it with the correct URL, and avoid moving files into nested directories unless you update references. After publishing, do a hard refresh or clear site data once so the new worker installs cleanly and caching works as intended.
Verify the map + photo flow fast
After the site is live, run a quick checklist: open the map, confirm tiles load, click a few photos, and test on mobile. Then check DevTools → Application to confirm the service worker is active and controlling the page. If something looks stale, unregister the worker and reload to pull the latest assets.
2 files
Start with your existing index.html + sw.js
3 steps
Upload, set paths, then deploy live
1 SW
Service worker stays enabled for offline caching
0 rebuilds
No rewrites—ship your local files as-is
DEPLOY YOUR FILES
Upload index.html + sw.js and go live in minutes
Use your existing local site files—no rebuild required. Add index.html and sw.js to the project, deploy, then verify the service worker registers so offline caching and fast loads work as intended.