【问题标题】:Google Maps API and Fusion Tables query with CONTAINS包含 CONTAINS 的 Google Maps API 和 Fusion Tables 查询
【发布时间】:2012-04-24 03:50:12
【问题描述】:

我正在尝试使以下 Google Maps JS API v3.7 Fusion Tables 查询正常工作。我没有成功。我不断获得比我应该的更多的位置;那些有位置数据的(目前是两个位置)。我应该回去的唯一地点是“洛克菲勒教堂”。就好像 API 完全忽略了查询。

this.buildingsLayer = new google.maps.FusionTablesLayer(3418043);
this.buildingsLayer.setQuery("SELECT LatLng FROM 3418043 WHERE PropertyName CONTAINS 'Rockefeller'");
this.buildingsLayer.setMap(this.map);

谁能帮我看看我到底做错了什么?任何人都可以让它工作吗?

融合表在这里: https://www.google.com/fusiontables/DataSource?docid=19HYOu84Oi8Id-dskNyRZxVAjE01CLm8cfNg8dAI

【问题讨论】:

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


    【解决方案1】:

    试试:

    var layer = new google.maps.FusionTablesLayer({
      query: {
        select: 'LatLng',
        from: '3418043',
        where: "PropertyName CONTAINS 'Rockefeller'"
      }
    });
    layer.setMap(map);
    

    Code from here

    在此处查看完整页面 http://jsfiddle.net/99jVg/

    【讨论】:

      猜你喜欢
      • 2017-02-04
      • 2013-02-06
      • 2013-11-19
      • 1970-01-01
      • 2014-10-11
      • 1970-01-01
      • 2013-04-30
      • 2017-06-14
      • 2014-03-23
      相关资源
      最近更新 更多