keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.12k stars 1.71k forks source link

[Bug] injectComponents does not work correctly #2557

Open ibrahimyilgor opened 2 months ago

ibrahimyilgor commented 2 months ago

React.js keplergl v2.5.5

I need to use custom components and I found this code below. ` const CustomHeader = () =>

My kepler.gl app
const myCustomHeaderFactory = () => CustomHeader

const KeplerGl = injectComponents([[PanelHeaderFactory, myCustomHeaderFactory]])

const MapContainer = () => (
    <div>
        <KeplerGl
            id='map'
            width={paperRef?.current?.offsetWidth || 1000}
            height={paperRef?.current?.offsetHeight || 1000}
            mapboxApiAccessToken={VALID_KEY}
            appName='X'
            appWebsite=''
        />
    </div>
)

return (
    <MapContainer />
)

`

Page automatically begins with add data modal and after i close the modal I cannot see the map

resim