PilotGaea 2D O'view
    正在準備搜尋索引...

    函數 getSensorThingsData

    • 取得SensorThings資料。

      參數

      • serviceInfo: ServiceInfo

        測站資料,從 ov.SensorThings.ServiceInfo 取得。

      • onProgress: (progressRate: number, totalCount: number) => void

        載入進度的回呼,傳回取資料的進度。

      • onLoad: (resource: SensorThingsResource) => void

        載入結束的回呼,傳回SensorThings資源。

      回傳 SensorThingsResource

      SensorThings資源,用以abort。

      let info = new ov.SensorThings.PM25ServiceInfo();
      let resource = null;
      ov.SensorThings.getSensorThingsData(info, console.log, function(ret){ resource = ret; });