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

182
Views
@react-google-maps/api can't print polygon

why i can't print the polygon when i using library @react-google-maps/api ? when i make it as pdf the data goes in, but when i click dowload which code like this

const print =() => {
     var printContents = document.getElementById('canvas').innerHTML;
     var originalContents = document.body.innerHTML;

     document.body.innerHTML = printContents;

     window.print();

     document.body.innerHTML = originalContents;
}

the google maps data not generated, the polygon missing.

Has anyone had any success with this?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The issue is that the Google Maps API is modifying the display with CSS for print.

enter image description here https://developers.google.com/maps/faq#print

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!