0

我为 iPad 制作原型网络应用程序,我想嵌入谷歌地图。

我使用谷歌教程中的 if 框架代码嵌入了地图:

<iframe width="720" height="340" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Belgrade,+Serbia&amp;aq=0&amp;sll=37.0625,-95.677068&amp;sspn=38.638819,79.013672&amp;ie=UTF8&amp;hq=&amp;hnear=Belgrade,+City+of+Belgrade,+Central+Serbia,+Serbia&amp;ll=44.809,20.465641&amp;spn=0.022226,0.062571&amp;z=14&amp;output=embed"></iframe>

但是,在 Safari 中,我得到带有一些矩形的地图:http ://cl.ly/2u2G0p1T3x3O1Q1X3A1B 当我将此网络应用程序添加到我的主屏幕时,我没有得到地图,我得到白色 div:http://cl。 ly/0O3n2c3N3C0C1F2x0l2a

在 iPad 网络应用程序上实现谷歌地图的其他方法在哪里?:|

4

1 回答 1

1

我还没有尝试过制作应用程序,但我可能会尝试使用Googles javascript api而不是 iframe。我相信使用 js 的控制量比使用静态版本要好得多。

于 2011-05-11T06:50:26.437 回答