English 中文(简体)
如何利用谷歌地图找到新的广场信息?
原标题:Get the new square InfoWindows with Google Maps?

I m 建造一个主要运行的网站是绘制地图,展示联合王国各地发生的专业活动。 我用谷歌地图 Java普文第3号,来做到这一点,但我怀疑,为什么我对InfoWindows的视而不见于maps.google.co.uk

对比以下两张屏幕。 地雷:

“entergraph

谷歌地图网站:

“entergraph

谷歌地图网站为什么有广场信息窗口,以及为什么我使用谷歌地图的最近版本“Jas Javacast”转播了Intel?

最佳回答

Martin,

I ve 前往谷歌地图,发现这 de:

http://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder-tool.html#q%3D42.0973243242C-903125。

你们应该看到广场的InfoWindow。

I looked under the hood and found the code below, could be the bounds overlay of your window. Hope it helps.

var openInfoWindow = function(resultNum, result, marker) {
    return function() {
      if (selected != null) {
        document.getElementById( p  + selected).style.backgroundColor = "white";
        clearBoundsOverlays();
      }

      map.fitBounds(result.geometry.viewport);
      infowindow.setContent(getAddressComponentsHtml(result.address_components));
      infowindow.open(map, marker);

      if (result.geometry.bounds) {
        boundsOverlay = new google.maps.Rectangle({
           bounds : result.geometry.bounds,
           strokeColor :  #ff0000 ,
           strokeOpacity : 1.0,
           strokeWeight : 2.0,
           fillOpacity : 0.0
        });
        boundsOverlay.setMap(map);
        google.maps.event.addListener(boundsOverlay,  click , onClickCallback);
        document.getElementById( boundsLegend ).style.display =  block ;
      } else {
        boundsOverlay = null;
      }

      viewportOverlay = new google.maps.Rectangle({
           bounds : result.geometry.viewport,
           strokeColor :  #0000ff ,
           strokeOpacity : 1.0,
           strokeWeight : 2.0,
           fillOpacity : 0.0
        });
      viewportOverlay.setMap(map);
      google.maps.event.addListener(viewportOverlay,  click , onClickCallback);
      document.getElementById( viewportLegend ).style.display =  block ;

      document.getElementById( p  + resultNum).style.backgroundColor = "#eeeeff";
      document.getElementById( matches ).scrollTop =
        document.getElementById( p  + resultNum).offsetTop -
        document.getElementById( matches ).offsetTop;
      selected = resultNum;
    }
  }
问题回答

仅略微说明。 如今,APICA2号的海流已经有固定的光窗。 我有同样的问题。 但可能很快就会自动确定。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签