UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

17 lines (16 loc) 545 B
"use strict"; import { GEOJSONLoaderHandler } from "../../../core/loader/geometry/GEOJSON"; import { SopTypeFile } from "../../poly/registers/nodes/types/Sop"; import { BaseFileSopOperation } from "./utils/File/_BaseFileOperation"; export class FileGEOJSONSopOperation extends BaseFileSopOperation { static type() { return SopTypeFile.FILE_GEOJSON; } _createGeoLoaderHandler(params) { return new GEOJSONLoaderHandler(params.url, this._node); } } FileGEOJSONSopOperation.DEFAULT_PARAMS = { url: ``, matrixAutoUpdate: false };