如何打印Google Map标记 [英] How to print Google Map markers

查看:143
本文介绍了如何打印Google Map标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google地图版本3 API在Google地图上添加标记。



问题是标记显示在浏览器上。

但当用户通过浏览器的打印命令打印地图时,什么也没有显示。



问题是,
- 如何在印刷材料上显示标记?

>比较


  • 在浏览器中 - 标记清晰可见


  • 打印后(IE7,IE8) - 不打印标记(纸或PDF)
    https://i.stack.imgur.com/DQqUZ.pngalt =alt text>



解决方案

我建议您尝试使用静态地图API 。您可以建立网址,以返回静态图片(您可以在网址中建立自定义标记)。



浏览器在打印图像方面比在动态Google地图上做得更好。


I am using Google Map Version 3 API to add markers on Google Map.

The problem is that, markers show up on browsers.
but when users print the map through browser's print command, nothing shows up.

The question is, - How can I display markers on printed materials? -

Comparisons:

  • On the browser - markers are clearly visible

  • After Print (IE7, IE8) - markers are not printed (on paper or PDF)

  • After Print (FireFox 3.5.4) - only markers are printed

解决方案

I suggest you try out the Static Maps API. You can build a url that will return a static image (you can build your custom markers into the URL).

The browser will do a much better job of printing an image than it will do with a dynamic Google map.

这篇关于如何打印Google Map标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆