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 7585273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:08:11+00:00 2026-05-30T19:08:11+00:00

I have a problem with printing maps Gmap V3. Printing is done by pressing

  • 0

I have a problem with printing maps Gmap V3.
Printing is done by pressing a button. Here’s the code:

function Print() {
                    text = document.getElementById('mapCanvas').innerHTML;
                    //mapCanvas is div whith map
                    printwin = open('', 'printwin', 'width=545,height=446');
                    printwin.document.open();
                    printwin.document.writeln('<html><head><title></title></head><body onload=print();close()>');
                    printwin.document.writeln(text);
                    printwin.document.writeln('</body></html>');
                    printwin.document.close();
                }

On the map uses custom markers. When printing, they do not appear, and if you print this page through the standard means everything is fine.

Anybody encountered this problem?

P.S. Sorry for bad English. 🙂

  • 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-30T19:08:12+00:00Added an answer on May 30, 2026 at 7:08 pm

    The markers are not included in the innerHTML of the div. Instead, they are overlayed on the map itself. The problem is not that you cannot print the markers, but that you are only copying the map into your new window and not the markers themselves.

    To solve your issue, you must include in your new html document more than the innerHTML of your mapCanvas div. Also include the javascript and the code that places the markers over your map.

    On the other hand, I think you should try having a different CSS file for printing, which hides what you do not want to display when printing, while at the same time allows for your map and markers to be displayed.

    Do that by using this in the css:

    @media print {
      /* style sheet for print goes here */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to print using php_printer.dll. I have no problem printing a simple text
We have a strange problem printing images and text. When we print FOR THE
I have problem with variable printing inside javascript. variable htmlString printing not working: document.write(htmlString)
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have problem when I try insert some data to Informix TEXT column via
I have problem with fancybox. I want to write a function that will run
I have this weird problem where my Google Maps API script doesn't work, no
I have a problem with printing a chart. I made a web page contains
I have no problem printing an Express shipping label. The ground shipping label doesn't
I have little problem with printing data like this, I have written script like

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.