0
테이블 아래에있는 Fusion 테이블 맵 링크가있는 웹 사이트 (www.auscem.com)가 있습니다. 현재지도의 마커를 클릭하여 infoWindow를 가져 오지만 대신 마우스 오버를하고 싶습니다.Fusion 테이블에서 마우스를 가져 오기
var map;
var layer;
var tableid = xxxxxxx;
function load()
{
map = new google.maps.Map(document.getElementById('mapDiv'),
{
center: new google.maps.LatLng(-25.274, 133.775),
zoom: 4, //zoom
mapTypeId: google.maps.MapTypeId.ROADMAP //the map style
});
layer = new google.maps.FusionTablesLayer(tableid, {suppressInfoWindows: false});
layer.setQuery("SELECT 'Latitude' FROM " + tableid);
layer.setMap(map);
google.maps.event.addListener(layer, "click", function(event)
{
document.getElementById('siteInfo').innerHTML = event.infoWindowHtml;
});
}
// execute this
window.onload = load;
내가 모든 일을 시도했습니다 ,,하지만 일을 못 했어 : 본 스크립트는 (약간 약칭 함)이다. 가장 환영 할 것
아이디어 ....
그래, 그게 내가 적응하려고 가장 많이 시도한거야. 그러나 나는 그것을 얻지 않았다. 나는 그것이 작동 할 때까지 '툴팁'모양을 받아 들일 준비가되어 있었고 진짜 infoWindow를 사용하기를 원했습니다. 하지만 ... 운이 없다. –
글쎄, 아마도 그 사실을 우리와 공유하고 당신이 시도한 것을 보여줄 수 있었을 것입니다. – geocodezip
7 개 또는 8 개의 변형이 있었고 시도한 모든 변형을 유지하지 못했습니다. 하지만 본질적으로 addListener 'click'줄을 addListener 'mouseover'로 바꾸고 'mouseout'을 사용했습니다. –