Detect System Theme Preference Change Using JavaScript

JavaScript and CSS allow users to detect the user theme preference with CSS’ prefers-color-scheme media query. It’s standard these days to use that preference to show the dark or light theme on a given website. But what if the user changes their preference while using your app? To detect a system theme preference change using JavaScript, you need to combine matchMedia, prefers-color-scheme, and an event listener: window.matchMedia('(prefers-color-scheme: dark)') .addEventListener('change',({ matches }) ={ if (matches) { console.log("change to dark mode!") } else { console.log("change to light mode!") } }) The change event of the matchMedia API notifies you... more →
Posted in: JavaScript

This new Google Maps feature may completely change how you use the app – BGR

This new Google Maps feature may completely change how you use the app  BGR Google Maps now includes community info from local experts  Pocket-lint Google Maps has a new ‘community feed’, which looks a lot like Yelp or TripAdvisor on steroids  Business Insider India Google Maps Getting ‘Ride Services’ Menu Entry to Provide Accurate Ride-Sharing Fares: Report  Gadgets 360 Google Maps to get this Facebook-like feature  Gadgets Now View Full Coverage on Google News “map app” – Google News… more →
Posted in: Interactive Maps

Emoji-based WYD app wants to change the way you use maps on your phone – Digital Trends

Digital Trends Emoji-based WYD app wants to change the way you use maps on your phoneDigital TrendsGetting a map out of the glovebox is a nearly ancient practice — but for one new iOS map app, so is typing an address in with a keyboard. WYD, short for “what you doing,” jumbles a medley of social media features all onto a single map designed to help … map app – Google News… more →
Posted in: Interactive Maps

Snap to change how Snap Map operates in Europe ahead of GDPR – TechCrunch

TechCrunch Snap to change how Snap Map operates in Europe ahead of GDPRTechCrunchAnd while users do need to opt in to share their location, the Snap Map feature was actively pushed out as a new feature notification when it launched — meaning the company actively solicited opt-ins from users. Once Snap Map has been enabled, there …Snap latest to pledge data changes ahead of GDPRMobile World Liveall 114 news articles » map app – Google News… more →
Posted in: Interactive Maps

This App Shows How Climate Change Is Affecting the World Around You – TIME

TIME This App Shows How Climate Change Is Affecting the World Around YouTIMEThe app, available for both iPhones and Androids, builds on the desktop version of the mapping technology, called the Eco Tapestry Map, which offers an even more in-depth view of world ecosystems. And while it's fun to get a sense of what's going on in … map app – Google News… more →
Posted in: Interactive Maps