简体   繁体   English

对话框未显示在Google地图中

[英]dialog not showing in google maps

I am not able to see the dialog box in the google maps.... i adjusted the width and height of maps but its not working.... is there some other way... providing my code below.... 我无法在Google地图中看到该对话框。...我调整了地图的宽度和高度,但无法正常工作....还有其他方法...在下面提供我的代码....

http://jsfiddle.net/KNPZB/4/embedded/result/ http://jsfiddle.net/KNPZB/4/embedded/result/

<div class="row features">

            <div class="span6">

              <h3>Our office is located at:</h3>
                <p>
                   47653, Lakeview Blvd, Fremont, CA 94538
                </p>
                <p>
                   Ph. (510)-657-8981 | F:(510)-657-8983|E:cs@defie.co
                </p>
                <p>
                   47653, Lakeview Blvd, Fremont, CA 94538
                </p>

            </div>



            <div class="span6">
                <iframe width="265" height="190" 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=47657+Lakeview+Blvd.+Fremont,+Ca.+94538&amp;sll=37.472223,-121.931554&amp;sspn=0.008225,0.019569&amp;vpsrc=0&amp;ie=UTF8&amp;hq=&amp;hnear=47657+Lakeview+Blvd,+Fremont,+California+94538&amp;z=14&amp;ll=37.472223,-121.931554&amp;output=embed"></iframe><br>
                <small>
                  <a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=47657+Lakeview+Blvd.+Fremont,+Ca.+94538&amp;sll=37.472223,-121.931554&amp;sspn=0.008225,0.019569&amp;vpsrc=0&amp;ie=UTF8&amp;hq=&amp;hnear=47657+Lakeview+Blvd,+Fremont,+California+94538&amp;z=14&amp;ll=37.472223,-121.931554" style="color:#0000FF;text-align:left">View Larger Map</a>
                </small>

            </div>

        </div>

I think you need to make embedded google map scale according to the size of the browser window. 我认为您需要根据浏览器窗口的大小来制作嵌入式Google地图比例尺。

So try using this: <iframe width="50%" height="50%"... 因此,请尝试使用以下方法: <iframe width="50%" height="50%"...

Sitepoint has a good CSS reference: http://reference.sitepoint.com/css Sitepoint具有良好的CSS参考: http//reference.sitepoint.com/css

I don't know how you are planning to fit the information bubble in such a tiny space, since the bubble itself is bigger than your allocated size for the <iframe> element. 我不知道您打算如何在这么小的空间中放置信息气泡,因为气泡本身大于您为<iframe>元素分配的大小。

In any case, what you want to do is keeping the pin in the correct position (look for the q and sll parameter) but move the center of the map itself a bit down and to the left by fiddling with the ll parameter (ie latitude and longitude). 无论如何,您想要做的就是将图钉保持在正确的位置(查找qsll参数),但是通过摆弄ll参数 (例如,纬度)将地图本身的中心向左下方移动一点和经度)。

I have fiddled a bit for you in this demo . 这个演示中,我为您做了一些摆弄。 Just for reference, I pushed your ll of just around +0,0083/+0,0035 . 仅供参考,我推了您的ll +0,0083/+0,0035 So we are speaking of small amounts. 因此,我们所说的是少量。

I also show you the tiniest possible space in which you can fit both the pin and the info bubble: you need a square of around 260px × 260px , and even then it fits barely, overlapping with the control. 我也告诉你最微小的可能空间,在其中你能适应这两个引脚信息提示:你需要的绕方260px × 260px ,即使如此,它适合勉强,与对照重叠。 So you might want to give a bit more breathing space to your map, or maybe considering using a static map . 因此,您可能想给地图留出更多的呼吸空间,或者考虑使用静态地图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM