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

  • SEARCH
  • Home
  • 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 7835051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:27:31+00:00 2026-06-02T13:27:31+00:00

My Chrome version is 18.0.1025.142 m. I used the JS API to make this

  • 0

My Chrome version is 18.0.1025.142 m.

I used the JS API to make this Google Map, but the map portion won’t display in Chrome’s Print Preview or actually print on paper.

Then I tried to shrink the map. Now, the contents clearly fit in one page, and show up in the print preview for IE, FF, and Opera. So size isn’t the problem.

Do I have any unorthodox HTML or JS? Is there a way to rewrite the page (add the right CSS, maybe) so it will print in Chrome? Ignoring most of the JS, which is irrelevant here, this is what I wrote (the map_canvas div displays the map)

<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <style type="text/css">
      html { height: 100% }
      body { height: 100%; margin: 0; padding: 0 }
      #map_canvas { height: 67%; width: 30% }
    </style>
    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript">
      var map;
...
 function initialize() {
        geocoder = new google.maps.Geocoder();
        map = new google.maps.Map(document.getElementById("map_canvas"),
          mapOptions);
...
 </script>
  </head>
  <body>
    <div id="menu">
      <b>address:</b>
      <input id="text_address" type="text" size="60" onkeyup="checkReturn(event)">
      <input id="check_sp" type="checkbox" checked="checked">SP
      <input type="button" value="clear" onclick="document.getElementById('text_address').value=''; document.getElementById('text_address').focus()">
      <input id="button3" type="button" value="clear markers" onclick="clearMarkers()">
    </div>
    <div id="map_canvas">
  </div>

  </body>
</html>
  • 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-06-02T13:27:32+00:00Added an answer on June 2, 2026 at 1:27 pm

    Well, it seems that the printing is working when the fits the page. Thus, reduce it to the size that it would fit A4 page quite well and you’re good 🙂 Here you are:

    <div id="map_canvas" style="width:800px; height:1000px;">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came across this strange behavior in Google Chrome recently (version 17.0): I defined
I upgraded from Chrome version 17 to Chrome: 18.0.1025.142 today. I've noticed one of
Which version of JavaScript does Google Chrome support in relation to Mozilla Firefox? In
In Chrome this is possible, but I don't find a way to do it
I'm using Chrome version 5.0.375.55 and Firefox version 3.5.9 but I can't get the
Bikram Website If you view this page in the latest version of chrome you
RESOLVED: CSS Animation/Scale issue in Chrome/Webkit I asked this question previously, but I'm not
I've run into a problem with Google Chrome (version: 15.0.874.121 m): when a block's
The issue is that sometimes I get this error in Google Chrome when I
Google Chrome version (8.0.552.224 (Official Build 68599)) I have developed a web site using

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.