【问题标题】:Pin Map in Metabase not Showing pins元数据库中的引脚图未显示引脚
【发布时间】:2021-03-02 13:41:01
【问题描述】:

我正在尝试基于元数据库中的经度和纬度进行 Pin Map 可视化,我使用自定义查询来执行此操作:

SELECT
    transaction_loc_latitude,
    transaction_loc_longitude,
    CAST(transaction_loc_latitude AS DECIMAL(17, 15)) AS latitude,
    CAST(transaction_loc_longitude AS DECIMAL(56, 15)) AS longitude
FROM
    mrg_merchant_transaction_2020_10
WHERE
    transaction_loc_longitude IS NOT NULL
    AND transaction_loc_latitude IS NOT NULL
    AND transaction_loc_longitude NOT IN ('0', '0.0', '0.00000000', '00')
    AND transaction_loc_latitude NOT IN ('0', '0.0', '0.00000000')

这里是带有截图的查询结果:

在这之后确定经纬度已经是小数了,然后我在对应的字段中设置

但地图没有显示任何图钉:

如何使图钉出现?我还想念什么吗?提前致谢

【问题讨论】:

    标签: sql metabase


    【解决方案1】:

    如果您的请求返回超过 999 行,则会出现错误:

    Pin Maps with more than 1000 results (LeafletTilePinMap) not working with native queries

    【讨论】:

      猜你喜欢
      • 2015-07-16
      • 1970-01-01
      • 2020-10-17
      • 1970-01-01
      • 2019-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-22
      相关资源
      最近更新 更多