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

330
Views
Cambiar la opacidad del mapa del folleto fuera del círculo del punto

La función de búsqueda de lugares cercanos de Geoapify resalta el área que se encuentra dentro del resultado dado, necesito saber cómo agregar esta función al mapa del folleto para que el área del radio dado que contiene lugares cercanos se resalte de otras áreas, ¿hay alguna solución para hacer esto en reaccionar folleto mapa?

ingrese la descripción de la imagen aquí

 useEffect(() => { const map = useMap(); L.circle([lat, lng], { radius: 200 }).addTo(map); }, []); const Map = () => { return ( <MapContainer center={center} minZoom={1} zoomControl={false} > <TileLayer attribution='&copy; <a href="http://osm.org/copyright"></a> contributors' url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" /> </MapContainer> ); };
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Una forma sería usar L.Donut y dibujar un círculo con un agujero alrededor del marcador:

 L.marker(map.getCenter()).addTo(map); var donut = L.donut(map.getCenter(),{ radius: 20000000000000, innerRadius: 100, innerRadiusAsPercent: false, color: '#000', weight: 2, }).addTo(map);

https://plnkr.co/edit/JX3VdzxnGXGoOerr

about 4 years ago · Juan Pablo Isaza Report
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!