.fog {
position: absolute;
inset: 0;
background: radial-gradient(
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.9) 75%,
rgba(255, 255, 255, 1) 100%
);
pointer-events: none;
}

🌐
Mapbox
docs.mapbox.com › all docs
Add custom fog to a map | Mapbox GL JS | Mapbox
Mapbox GL JS · Copy as Markdownchevron-down · View as MarkdownCopy as Markdown · This example uses setFog to add a custom atmosphere effect to a map. It transitions between night and day to change the mood of the environment.
Discussions

Newest 'mapbox-gl' Questions - Page 3 - Stack Overflow
Stack Overflow | The World’s Largest Online Community for Developers More on stackoverflow.com
🌐 stackoverflow.com
How to use an existing Mapbox GL "template" but add elevation/fog to it? - Stack Overflow
Again, if I were to make my own ... stuff: https://docs.mapbox.com/mapbox-gl-js/style-spec/root/ To be frank, I have no idea who would ever want a 3D map which can support elevation/height differences and realistic fog/lights, yet not use those features.... More on stackoverflow.com
🌐 stackoverflow.com
Clear Mapbox-gl fog effect - Stack Overflow
Communities for your favorite technologies. Explore all Collectives · Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work More on stackoverflow.com
🌐 stackoverflow.com
React map component?

For a basic map, leaflet is a decent option via something like react-leaflet, but it's got some major drawbacks if you are building anything mildly complex.

I think that Uber's react-map-gl (a "react-ified" version of Mapbox's "map-gl-js") is a much stronger react mapping lib.

More on reddit.com
🌐 r/reactjs
6
2
October 19, 2016
🌐
React Map GL
visgl.github.io › react-map-gl
Home | react-map-gl
Use a MapLibre GL JS or Mapbox GL JS map as a fully controlled reactive component.
🌐
React Map GL
visgl.github.io › introduction
Introduction | react-map-gl
We sometimes render two maps side by side, and when the user interacts with one, update both cameras. We draw React UI outside of the map container, that moves with the camera. We also render WebGL graphic overlays on top of the map, most notably with deck.gl.
🌐
React Map GL
visgl.github.io › default (map)
default (Map) | react-map-gl
Map container CSS. ... The current cursor type. The fog property of the style. Must conform to the Fog Style Specification.
🌐
npm
npmjs.com › package › react-map-gl
react-map-gl - npm
3 weeks ago - React components for MapLibre GL JS and Mapbox GL JS. Latest version: 8.1.1, last published: 19 days ago. Start using react-map-gl in your project by running `npm i react-map-gl`. There are 482 other projects in the npm registry using react-map-gl.
      » npm install react-map-gl
    
Published   Apr 11, 2026
Version   8.1.1
🌐
GitHub
github.com › visgl › react-map-gl
GitHub - visgl/react-map-gl: React friendly API wrapper around MapboxGL JS · GitHub
# Using Maplibre npm install react-map-gl maplibre-gl
Starred by 8.4K users
Forked by 1.4K users
Languages   TypeScript 65.5% | JavaScript 32.2%
Find elsewhere
🌐
React Map GL
visgl.github.io › get started
Get Started | react-map-gl
Using react-map-gl requires node >= 12 and react >= 16.3.
🌐
Stack Overflow
stackoverflow.com › questions › tagged › mapbox-gl
Newest 'mapbox-gl' Questions - Page 3 - Stack Overflow
I'm trying to create a function that users can click on a country marker and the map will zoom into the country on React. However, the problem is the zoom level is different for different countries. ... ... I'm rendering a mapboxgl map in RMarkdown (HTML output, using r2d3 js library in R for the js part). I'm trying to update the layers displayed in a mapboxgl map by passing in a dynamic variable for ... ... I'm working with mapbox-gl-js in a React (Next.js) project and I'm having trouble figuring out how to dynamically style markers differently when they are clicked.
🌐
CodeSandbox
codesandbox.io › examples › package › react-map-gl
react-map-gl examples - CodeSandbox
Use this online react-map-gl playground to view and fork react-map-gl example apps and templates on CodeSandbox.
🌐
LogRocket
blog.logrocket.com › home › using mapbox gl js with react
Using Mapbox GL JS with React - LogRocket Blog
June 4, 2024 - Want to build map interfaces with React? In this post, learn to use react-map-gl to build two variations of map components.
🌐
Medium
edisondevadoss.medium.com › map-using-react-map-gl-511f08f0b330
Map using React map gl .. Friends, in this article, I will… | by Edison Devadoss | Medium
December 12, 2019 - Map using React map gl . Friends, in this article, I will explain how to integrate map with geojson data using react-map-gl. React map gl using map box API. Map box is like google map. It provides …
🌐
GitHub
github.com › alex3165 › react-mapbox-gl
GitHub - alex3165/react-mapbox-gl: A React binding of mapbox-gl-js · GitHub
<html> <head> ... <link href="https://api.mapbox.com/mapbox-gl-js/v1.10.1/mapbox-gl.css" rel="stylesheet" /> </head> </html> // ES6 import ReactMapboxGl, { Layer, Feature } from 'react-mapbox-gl'; import 'mapbox-gl/dist/mapbox-gl.css'; // ES5 var ReactMapboxGl = require('react-mapbox-gl'); var Layer = ReactMapboxGl.Layer; var Feature = ReactMapboxGl.Feature; require('mapbox-gl/dist/mapbox-gl.css'); const Map = ReactMapboxGl({ accessToken: 'pk.eyJ1IjoiZmFicmljOCIsImEiOiJjaWc5aTV1ZzUwMDJwdzJrb2w0dXRmc2d0In0.p6GGlfyV-WksaDV_KdN27A' }); // in render() <Map style="mapbox://styles/mapbox/streets-v9" containerStyle={{ height: '100vh', width: '100vw' }} > <Layer type="symbol" id="marker" layout={{ 'icon-image': 'marker-15' }}> <Feature coordinates={[-0.481747846041145, 51.3233379650232]} /> </Layer> </Map>;
Starred by 2K users
Forked by 533 users
Languages   TypeScript 93.7% | CSS 3.1% | HTML 2.5%
🌐
GitHub
github.com › topics › react-map-gl
react-map-gl · GitHub Topics · GitHub
react map environment typescript monorepo fishing gfw deckgl react-map-gl maplibre-gl-js ... A set of tutorials on how our frameworks make effective data visualization applications.
🌐
MapTiler
docs.maptiler.com › react › maplibre-gl-js › how-to-use-maplibre-gl-js
How to display MapLibre GL JS map using React JS | React | Maplibre gl js | MapTiler
In this step-by-step tutorial, you’ll learn how to create a React JS component to render a map using MapLibre GL JS.
🌐
GitHub
github.com › visgl › react-map-gl › blob › master › CHANGELOG.md
react-map-gl/CHANGELOG.md at master · visgl/react-map-gl
Almost all imperative APIs (flyTo, fitBounds etc.) can now be called directly without breaking the React binding. Compatibility: first and third-party plugins! Directly use mapbox-gl-draw, mapbox-gl-geocoder, to name a few.
Author   visgl