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

109
Views
Google Maps no carga rutas con React + Flask

El problema

Hola a todos,

Soy nuevo tanto en React como en Flask, lo siento si este es un problema simple, pero básicamente, tengo dos entradas (ubicaciones de inicio/finalización) que pasan al backend de Flask que pasa por un algoritmo y luego exporta la ruta de Google Map como .html ; Puedo ingresar las ubicaciones de inicio/finalización y crear la nueva ruta, simplemente no se actualiza en tiempo real ya que tengo que actualizar la página para ver los resultados.

En mi App.js tengo un iframe simple para incrustar los resultados como

 <iframe id="Google-Map" src={"./map.html"} width="75%" height="500vh"></iframe>

¿Cómo podría permitir que se actualice en tiempo real?

lo que he probado

He intentado lo siguiente

 import Map from './map.html'; function App(){ ... <iframe id="Google-Map" src={"./map.html"} width="75%" height="500vh"></iframe> }

Pero me sale el siguiente error:

 ERROR in ./src/map.html 1:0 Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders > <html> | <head> | <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> @ ./src/App.js 7:0-30 @ ./src/index.js 6:0-24 10:33-36 webpack 5.65.0 compiled with 1 error and 1 warning in 66 ms
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Mantenga su archivo html en un lugar público, no en la carpeta src . Porque de alguna manera los archivos en la carpeta src no están visibles.

Puede editar su línea de iframe de esta manera:

 <iframe id="Google-Map" src="../map.html" width="75%" height="500vh"></iframe>
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!