iframe谷歌地图不会在Chrome中打印 [英] iframe Google maps won't print in chrome
问题描述
自从最新的Google地图更新后,我无法通过我的Chrome浏览器打印地图。
如果我尝试使用Firefox进行打印并查看预览,则会显示地图。
我的代码:
< iframe width =600 height =300marginheight =0
src =http://maps.google.com/maps?ie=UTF8&q=loc:{address} {number} @ {latitude}, {longitude}& amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; z> 14& amp; amp; output = embed& amp; iwloc = near
< / iframe>
它显示以下内容(以chrome为单位):
如果我尝试打印它,我会得到:
在Firefox和Safari中,它显示出完美。
我认为这是一个铬问题? (我已经在不同的Chrome浏览器,不同的计算机上,MAC和PC上测试过它)
或者有些东西丢失了,或者我应该添加新的地图。
小细节,如果我转到Google地图的开发者网站( https://developers.google.com/maps/documentation/embed/guide ),我尝试从那里打印它,它也不会打印。我认为这很奇怪,因为地图和Chrome都是由Google构建的。
其他人是否有这个问题,还是仅仅是我?如果只是我,我做错了什么?
(My chrome version:33.0.1750.152,working on OSX 10.9.2)
太多了,不幸的是没有办法解决这个问题,使用Chrome打印iframe插入。我也不知道原因,所以我决定改变,改善! :)
我轻松地将我的html代码更改为使用Google API,然后再次打印地图。
在我对网络的搜索中,我发现并开始使用一个非常简单的实现Google Maps的jQuery插件,名为 $ goMAP(); 缺点:您需要具备一点jQuery和JSON知识。
在示例页面可以找到很多实现,我知道其中的一个会适合你。
如果您需要更多技术信息,您可以在 Google Maps API 。
这些是我在采用解决方案之前阅读的一些补充URL:
https:// co de.google.com/p/chromium/issues/detail?id=353937
http://themeforest.net/forums/thread/google-maps-iframe-issue-in-chrome/110324
我希望不会让你失望,但会帮助你:)
Daniel
Since the latest Google maps update, I'm unable to print the map via my chrome browser. If I try to print it with firefox, and have a look at the preview, the map shows up.
My code:
<iframe width="600" height="300" marginheight="0"
src="http://maps.google.com/maps?ie=UTF8&q=loc:{address} {number}@{latitude},{longitude}&z=14&output=embed&iwloc=near"
frameborder="0" marginwidth="0" scrolling="no">
</iframe>
It displays the following (in chrome):
And if I try to print it, I get:
While in Firefox and Safari, it shows up perfect. I assume that this is a chrome issue? (I've tested it on different chrome browsers, on different computers, both MAC and PC) Or is there something I'm missing, or that I should add with the new maps.
Small detail, if I Go to the developer site of google maps (https://developers.google.com/maps/documentation/embed/guide) and I try to print it from there, it won't print either. Which I think is strange, since both maps and chrome are build by Google.
Does anybody else have this issue, or is it just me? And if it is just me, what am I doing wrong? (My chrome version: 33.0.1750.152, working on OSX 10.9.2)
I have read and studied too much about this, and unfortunatelly there is no solution to this, to print the iframe insertion using Chrome. I also don´t know the reasons, so I decided to change, to improve! :)
I easyly changed my html codes to use the Google API, then it becomes to print the map again.
In my searches around the web, I found and started to use a very simple to implement jQuery plugin for Google Maps, called $goMAP(); Cons: you need to have a little bit of jQuery and JSON knowledge.
In the Example Page you can find a lot of implementations, I know one of it will fits to you.
And If you need more technical information, you can find whatelse you need in the Google Maps API.
These are some complementary URLs I´ve read before to adopt the solution: https://code.google.com/p/chromium/issues/detail?id=353937 http://themeforest.net/forums/thread/google-maps-iframe-issue-in-chrome/110324
I hope not have disapointed you, but helped instead :)
Daniel
这篇关于iframe谷歌地图不会在Chrome中打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!