【问题标题】:Fusion Table layers not showing up in my google map?Fusion Table 图层未显示在我的谷歌地图中?
【发布时间】:2013-01-04 04:34:36
【问题描述】:

这是我第一次使用 Fusion Tables 制作地图,我希望在这张地图中显示两个图层,一个带有标记,另一个带有多边形,

我正在使用教程https://developers.google.com/maps/documentation/javascript/layers#FusionTables中显示的样式进行尝试,但是

我不知道我做错了什么没有出现?

http://www.missromi.com/maps/miami-test.html

【问题讨论】:

    标签: google-maps google-maps-api-3 google-fusion-tables


    【解决方案1】:

    当你设置他的地图属性时,地图上会显示一个图层。

    您在第 55 行设置了 layer 的 map-property:

    layer.setMap(map);
    

    ...但是没有对象layer,对象是layer1layer2

    您必须致电:

    layer1.setMap(map);
    layer2.setMap(map);
    

    【讨论】:

      【解决方案2】:

      我建议使用 Fusion Tables Layer 向导生成将两个地图分层的代码,然后从那里进行修改:

      http://fusion-tables-api-samples.googlecode.com/svn/trunk/FusionTablesLayerWizard/src/index.html

      -丽贝卡

      【讨论】:

        猜你喜欢
        • 2019-08-06
        • 2019-03-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-02-18
        相关资源
        最近更新 更多