K
K
kirillleogky2021-03-04 12:40:12
Google Maps
kirillleogky, 2021-03-04 12:40:12

Why is GoogleMapReact not showing up?

I am using Next.js and google-map-react .
When I go to the page using Link, the map is not displayed, but when I reload the page while on the page with the map, everything is displayed correctly.
What could be the problem?
My map render:

render() {
        return <div className="restaurant-map">
            <Helmet title="En Yakın Pizza Hut Restoranları">
                <meta name="description"
                      content="Size en yakın Pizza Hut restoranlarını görüntüleyebilir, açılış-kapanış saatleri ve adres bilgilerini görüntüleyebilirsiniz."/>
            </Helmet>
                    <GoogleMapReact
                        bootstrapURLKeys={GOOGLE_MAPS_API_KEY}
                        defaultZoom={12}
                        center={DEFAULT_CENTER}
                    />
        </div>;
    }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question