4 ms·
I'm only getting a blank background on Firefox, both Android and desktop. Edge too, is the service just down?
by jimmaswell 5y ago
I'm only getting a blank background on Firefox, both Android and desktop.
Edge too, is the service just down?
- adamlynch 5y agoYes but it should be back now? My hosting provider (Cloudflare Pages) seem to have a limit on "functions" I cannot increase. I've worked around it for now but it might open at Cork for everyone. If so, you can zoom out and tap the map to select somewhere else.
- jimmaswell 5y agoI put my town's coordinates in manually and it's still blank, and I don't see anything zooming all the way out. What do you mean by functions? I would just request location with javascript and use Google geolocation as a fallback.
- adamlynch 5y agoOK I'm done with fighting fires for now and can answer that last question. Cloudflare offer "functions" and "workers", they're like functions that run on the edge CDN nodes. These functions receive geolocation information via a function argument. So I've a function that intercepts requests to the app, grabs the geolocation information, and rewrites the URL (inserting the coordinates e.g. /lat,lng). I go into more detail about this in the blog post but originally it just opened in Cork for everyone. I disliked the idea of having an annoying browser prompt for location permissions. I made it for my dad so having no geolocation was fine to begin with and I eventually added the geolocation I described above. Less friction, no extra client-side requests.
- whoopdedo 5y agoThose "annoying prompts" are there for a reason. How do you justify ignoring the users' wishes with regards to accessing personally identifiable information? Also, why WebGL?
- adamlynch 5y ago>Those "annoying prompts" are there for a reason Yep, but not worth ruining the UX for marginally better geolocation in my case. > How do you justify ignoring the users' wishes with regards to accessing personally identifiable information? I don't know what you're referring to. If you're suggesting I'd prefer that apps & sites could access our location without asking, you're mistaken. >Also, why WebGL? The no-streets OSM raster map tiles were discontinued and I had to switch to custom Maptiler layers. They don't allow raster map tiles on the free plan.
- adamlynch 5y agoOK it should be more back now. I migrated from Cloudflare functions to a Cloudflare worker. Make sure to clear your cache / hard reload though