EarthSDK
    正在准备搜索索引...

    函数 diffGeoJson

    • 比较新旧 GeoJSON,返回差异信息

      参数

      • newGeoJson: undefined | FeatureCollection<Geometry, GeoJsonProperties>

        新 GeoJSON 数据

      • oldGeoJson: undefined | FeatureCollection<Geometry, GeoJsonProperties>

        旧 GeoJSON 数据

      • compareContent: boolean = false

        是否比较内容和坐标,默认为 false(只比较 id)

      返回 {
          contentUnchangedIds?: string[];
          contentUpdatedIds?: string[];
          newIds: string[];
          removedIds: string[];
          unchangedIds: string[];
      }

      无变化 id 数组、新增 id 数组、删除 id 数组、 optionally: 内容无变化 id 数组、内容更新 id 数组