• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

118
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]);
almost 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error