Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

244
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda