Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
Why are my Map overlays/markers all clogged up on the edge (top-left) of the Map component?

I get all data after making an API call based on the visible map boundaries. The data has coordinates in it. Hovering over the overlays/markers show the coordinates are being received (as shown in the pic). Pigeon-maps is used for this project.

Sample api response-> placeNames = [{..}, {..}, {location_id: '271918', name: 'The Burren', latitude: '53.04881', longitude: '-9.139942', num_reviews: '713', …}]

Overlays/Markers clogged up on the top right edge of the Map

<Map provider={maptilerProvider} height={'85vh'} center={coordinates} zoom={zoom}
            onBoundsChanged={({ center, zoom, bounds }) => {
                setCoordinates(center)
                setZoom(zoom)
                setBounds(bounds)
            }}
        >
            {isLoading ? <div>Loading</div> : placeNames?.map((pla, i) =>

                <div key={i}>


                    <Overlay anchor={[pla.latitude, pla.longitude]} >
                        <div key={i} onClick={() => setIconClicked(i)} onMouseOver={() => setVisible(i)} onMouseLeave={() => setVisible(100)} >
                            <MdLocalHotel />
                            {visible === i &&
                                <div className='bg-yellow-100 rounded-lg p-1 font-bold px-1 text-xs'>{pla.name}
                                    <div className='text-gray-700 text-right font-medium pt-0.5'>Latitude: {pla.latitude} Longitude: {pla.longitude}

                                    </div>
                                </div>}

                        </div>
                    </Overlay>

                </div>


            )}

        </Map >
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!