How to Print Google Map Markers

I am using the Google Map API 3 to add markers to a Google map.

Problem lies in the fact that markers are displayed in browsers.

but when users print the map through the print command of the browser, nothing is displayed.

The question is - How to display markers on printed materials? -

Comparison

  • In the browser - markers are clearly visible alt text

  • After printing (IE7, IE8) - markers are not printed (on paper or in PDF) alt text

  • After printing (FireFox 3.5.4) - only markers are displayed alt text

+3
source share
5 answers

API . url, ( URL-).

, Google.

+4

, MarkerWithLabel Google Marker, .

+1

" ". , . : CSS?

+1

I had no problems printing markers. I created my own markers, and I use a tag <IMG>to insert a marker icon.

Tokens print fine on IE 8 by default.

0
source

Please find the link below:

https://gist.github.com/jawsthegame/6801698

With this, you can print a Google map along with custom markers.

You only need to make changes to line No. 17. Replace container.clone (); with $ (container) .clone ();

0
source

Source: https://habr.com/ru/post/1765196/


All Articles