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

241
Views
¿Por qué no aparecen los colores del mapa de calor en el mapa?

Quiero preguntar, es decir, ¿por qué el color del mapa de calor no se muestra en el mapa? y uso de API y GeoJSON, ¿hay algún problema con mi propia codificación? ¿Hay alguna parte de const position = response.features ? Enlace 1 y Enlace 2

El siguiente ejemplo no muestra el color del mapa de calor, pero sale como un cuadro y dice marker . ingrese la descripción de la imagen aquí

 useEffect(() => { setIsLoading(true); getLocation(body) .then((response) => { const array = []; response.features.forEach((element) => { array.push({ type: "Feature", properties: element["attributes"], geometry: { type: "Point", coordinates: [ element["geometry"]["x"], element["geometry"]["y"], ], }, }); }); const FeatureCollection = { type: "FeatureCollection", features: array, }; if (geoJsonLayer.current) { geoJsonLayer.current.clearLayers().addData(FeatureCollection); } const position = response.features ? response.features.forEach((element) => { return [element["geometry"]["x"], element["geometry"]["y"]]; }) : []; if (geoJsonLayer.current) { L.heatLayer(position).addTo(FeatureCollection); } setData(FeatureCollection); }) .catch((err) => console.log(err)) .finally(() => setIsLoading(false)); }; fetchData(); }, [bounds, setIsLoading, tokenArcgis]);
over 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!