Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6330359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:51:22+00:00 2026-05-24T17:51:22+00:00

I have a Google Map (API 3) in a hidden div when my page

  • 0

I have a Google Map (API 3) in a hidden div when my page loads. If I set the CSS on the map to display:block I get the usual problem of the map not filling the complete area inside the map’s container. This is not a problem on the website itself, as upon clicking “show map” I call google.maps.event.trigger(map, ‘resize’); and this displays the map correctly.

However my problem arises in print preview. Unless “show map” has been clicked on prior to the user selecting print preview, the map within print preview will display as it does on the load of the page i.e. not fitting within the bounds of the container.

Can anyone suggest a fix for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:51:23+00:00Added an answer on May 24, 2026 at 5:51 pm

    You could set up a print button, and on click it opens a new page with new css to fit a 8.5×11 sheet. You can also use static maps in this page so they don’t get the zoom bar etc.

    A lot of pages use print buttons on receipts because printing a webpage directly is so difficult.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Google Map API v3 map object on a page that uses
I have a problem with a Javascript request to the Google Map Api Web
I have a problem that Google Map API is inheriting the style from my
I have the following content page set up to display a map of the
I have a web page with a google map (api v3) that has dozens
I have a scenario where I am using Google Map JavaScript API to process
I have a dynamic map in Google Maps (API v2) I want to overlay
I have a Google Map (API 2) that used to work fine as a
I have been searching on the Google Map API V3 documentation but I could
I have a question regarding map api. I was using the the google map

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.