react-mapbox-gl
react-mapbox-gl copied to clipboard
A React binding of mapbox-gl-js
Likely an issue with [React 18 running useEffect hook twice.](https://stackoverflow.com/questions/48846289/why-is-my-react-component-is-rendering-twice) See here for the output snippet: ``` ````
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1. Changelog Sourced from eventsource's changelog. 1.1.1 Do not include authorization and cookie headers on redirect to different origin (#273 Espen Hovlandsdal) 1.1.0 Improve performance...
Hello, I'm adding raster images to my map ([like in this example](https://docs.mapbox.com/mapbox-gl-js/example/image-on-a-map/)); that works fine on my desktop computer. But I noticed that the images **won't show up on mobile...
Render: ` {data.map((point, index) => ( this.handleClick(point)} /> ))} ` Function: `handleClick = (e) => { console.log(e) }`
Hi. I have `[email protected]` installed. However the peer dependence of `mapbox-gl` is `^1.12.0` is there any plan to update it ?
I see that DrawControl is not rendered in React v18 and above. Will this be supported?
The onStyleLoad event only gets fired after the first style loads. If I change styles, the event never fires again like it should. Applying a callback to the underlying mapbox...
Maybe I unterstood something wrong, but is it possible to use Mapbox without an accessToken by using urls with tiles? I would like to have an example for this.
I've spotted production build fail with error ```Uncaught ReferenceError: y is not defined``` (See screenshot below)  Steps to reproduce - create fresh react app with TypeScript. Add dependencies ```...
I am trying to add WMS source to the map. I followed the documentation for adding the raster source https://github.com/alex3165/react-mapbox-gl/blob/master/docs/API.md#source ``` const RASTER_SOURCE_OPTIONS = { "type": "raster", "tiles": [ 'http://localhost:8080/geoserver/cite/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&tiled=true&LAYERS=cite%3AKhokana_Nadir_transparent_mosaic_group1&exceptions=application%2Fvnd.ogc.se_inimage&WIDTH=256&HEIGHT=256&SRS=EPSG%3A&STYLES=&BBOX={bbox-epsg-3857}'...