.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.
Newest 'mapbox-gl' Questions - Page 3 - Stack Overflow
Stack Overflow | The World’s Largest Online Community for Developers More on 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
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
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.comVideos
02:15:47
Maps & Routes With Mapbox GL JS | Building A Travel Guide With ...
Video: Add custom markers to a map with Mapbox GL JS
22:26
React Geospatial Visualization with kepler.gl - YouTube
23:32
Mapbox - Interactive maps in React - YouTube
20:15
Build a coronavirus map with fetch & mapbox - YouTube
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
Starred by 8.4K users
Forked by 1.4K users
Languages TypeScript 65.5% | JavaScript 32.2%
Mapbox
docs.mapbox.com › all docs › help › tutorials › use mapbox gl js in a react app
Use Mapbox GL JS in a React app | Help | Mapbox
Create a React web app that uses Mapbox GL JS to render a map.
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.
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 › 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