2016-05-03 78 views
1

我正在通過Fusion Table API調用FusionTableMapLayer。我已經爲實際的Google Fusion Table程序中的圖層開發了一個定製的信息窗口,但是當我在應用程序中調用圖層時,信息窗口將恢復爲默認的信息窗口。 a)如何調用保存在Google Fusion Table中的自定義信息窗口或b)將自定義信息窗口作爲我的API調用的一部分?在FusionTableMapLayer中自定義信息窗口

回答

0

使用從嚮導出口(或至少styleId和templateId從它)的代碼

new google.maps.FusionTablesLayer({ 
    query: { 
    select: "geometry", 
    from: "1EPhndJHBm0ghi06Xq9d8P62hUwCisAcQxYxgH5ax", 
    }, 
    map: map, 
    options: { 
    styleId: 2, // get these values from the proper tab on the FusionTables UI 
    templateId: 2 // get these values from the proper tab on the FusionTables UI 
    } 
}); 
相關問題