使用 mapbox 在地图上进行大数据数据分析

问题描述 投票:0回答:0

我在数组(GeoJSON)中有大约 100 万个(将来可能会增加)对象,如下所示:

[{
          "id": 4472,
          "type": "Feature",
          "properties": {
            "id": 1,
            "key1": 123,
            "key2": 123.8484211,
            "key3": 123.1713833,
            // around 15 more keys
          },
          "geometry": {
            "type": "Polygon",
            "coordinates": [
              [
                [-104.33, 34],
                [-104.33, 33.67],
                [-104.67, 33.67],
                [-104.67, 34],
                [-104.33, 34]
              ]
            ]
          }
}]

我在 Angular 项目中使用 Mapbox,我想在地图上绘制多边形,数组中有重复的多边形。

因为我不能直接使用 GeoJSON,因为它会使浏览器崩溃,所以我一直在将它上传(目前有 50 万数据)到 MTS,然后将其用作矢量。从缩放级别 0-6 开始,它会掉落一些图块,我也会收到警告

 Features were dropped from bakeries layer in 29 tile(s) to enforce tile size limits. Affected zoom levels are: 0,1,2,3,4,5,6. Affected tiles and their required layer_sizes include: ...

我该如何解决这个问题?我应该看看其他解决方案、库或 SaaS 产品吗?

我已经阅读了几个文档,GeoJSON for large dataset, tileset, filter, zoom level affected how to fix it FAQ in Mapbox 如果我应该继续使用全新的解决方案,请告诉我。

javascript angular mapbox mapbox-gl-js mapbox-gl
© www.soinside.com 2019 - 2024. All rights reserved.