antvis / L7VP

L7VP is an geospatial intelligent visual analysis and application development tools.

Home Page:https://li.antv.antgroup.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐛 [BUG] 如果一个GeoJSON文件 既包含点数据,又包含线数据,那么L7VP 无法解析

bucengfangqi opened this issue · comments

🐛 Bug description

image

📷 Step to reproduce

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "coordinates": [
          117.99290249905201,
          36.81152709842773
        ],
        "type": "Point"
      },
      "id": 0
    },
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "coordinates": [
          [
            117.99290249905201,
            36.81152709842773
          ],
          [
            117.99515416646575,
            36.81130692505204
          ],
          [
            117.99543692472072,
            36.813674908262826
          ],
          [
            117.99746083035139,
            36.813497075547325
          ],
          [
            117.99753361626716,
            36.81410703103604
          ],
          [
            117.99737607026627,
            36.81416462832915
          ],
          [
            117.9975944072115,
            36.81590736148705
          ],
          [
            117.99881846277329,
            36.8157852243725
          ],
          [
            117.99868504753589,
            36.81490410881957
          ],
          [
            118.00004242616716,
            36.81481141279246
          ],
          [
            118.0001758426044,
            36.81569253039659
          ],
          [
            118.00146051888088,
            36.815589949077484
          ],
          [
            118.0013755914864,
            36.814805758549305
          ],
          [
            118.0025148369146,
            36.814702741810834
          ],
          [
            118.00244206420261,
            36.81422828562611
          ],
          [
            117.99998178277023,
            36.81441442094722
          ],
          [
            117.9999089988351,
            36.81383350182735
          ],
          [
            118.00019986278289,
            36.81376663033948
          ],
          [
            118.0008300268104,
            36.81324589809136
          ],
          [
            118.00124201863777,
            36.81255029256549
          ],
          [
            118.00144794279545,
            36.81157337792768
          ],
          [
            118.00143572170913,
            36.810682900963336
          ],
          [
            118.00373845947239,
            36.810544682910106
          ],
          [
            118.0033382234517,
            36.808094704035916
          ],
          [
            118.00416236178471,
            36.808019767297964
          ],
          [
            118.00461084525219,
            36.80845668291933
          ],
          [
            118.00535017980187,
            36.80867186081703
          ],
          [
            118.0060531218995,
            36.808596558435575
          ],
          [
            118.00669543259762,
            36.80824038024133
          ],
          [
            118.00718016410694,
            36.807699819831704
          ],
          [
            118.00865876063406,
            36.80758815219213
          ],
          [
            118.0088390797998,
            36.80756841216318
          ],
          [
            118.0084509804323,
            36.80523453153503
          ],
          [
            118.0052392646605,
            36.80556358239376
          ],
          [
            118.00512491585455,
            36.805031167703056
          ]
        ],
        "type": "LineString"
      }
    },
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "coordinates": [
          118.00512491585455,
          36.805031167703056
        ],
        "type": "Point"
      }
    }
  ]
}

正常显示如下图
653622e7ebbe96e14209c53007ce668c

一份 Geojson 数据类型需保持单一,一般一个图层消费一种数据源类型