Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 用户视图中不存在google地图位置_Javascript_Google Maps - Fatal编程技术网

Javascript 用户视图中不存在google地图位置

Javascript 用户视图中不存在google地图位置,javascript,google-maps,Javascript,Google Maps,我的网站上有谷歌地图。我把这个装进了弹出窗口。 但当我加载这个时,位置不在中心。我需要滚动屏幕 地图如果有什么不对劲的话。如果有人知道的话。请帮帮我。 我是新来的 <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times; </button> <h4 class="

我的网站上有谷歌地图。我把这个装进了弹出窗口。 但当我加载这个时,位置不在中心。我需要滚动屏幕 地图如果有什么不对劲的话。如果有人知道的话。请帮帮我。 我是新来的

  <div class="modal-header">
  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;      </button>
  <h4 class="modal-title" id="map-title">Australia</h4>
   </div>
   <div class="modal-body" style="padding-right: 0;padding-left: 25px;">
   <iframe width="96%" height="350" frameborder="0" scrolling="no" marginheight="0"   marginwidth="0" src="https://maps.google.co.in/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=32+Martin+Place,+Sydney,+New+South+Wales,+Australia&amp;aq=0&amp;oq=32+Martin+Place&amp;sll=-33.872954,151.205488&amp;sspn=0.005336,0.009645&amp;ie=UTF8&amp;hq=&amp;hnear=32+Martin+Pl,+Sydney+New+South+Wales+2000,+Australia&amp;ll=-33.867659,151.209329&amp;spn=0.005336,0.009645&amp;t=m&amp;z=14&amp;output=embed"></iframe><br /><small><a href="https://maps.google.co.in/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=32+Martin+Place,+Sydney,+New+South+Wales,+Australia&amp;aq=0&amp;oq=32+Martin+Place&amp;sll=-33.872954,151.205488&amp;sspn=0.005336,0.009645&amp;ie=UTF8&amp;hq=&amp;hnear=32+Martin+Pl,+Sydney+New+South+Wales+2000,+Australia&amp;ll=-33.867659,151.209329&amp;spn=0.005336,0.009645&amp;t=m&amp;z=14" style="color:#0000FF;text-align:left">View Larger Map</a></small>
  </div>

&时代;
澳大利亚


听起来像是你先加载地图,然后iframe因为某种原因变小了?是的,但我可以;当您打开模式时,是否可以设置iframe源?