mirage2d 1.1.23 → 1.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -176555,6 +176555,7 @@ class PathLayer extends baseGraphicLayer {
176555
176555
  __publicField(this, "moveNodeInfo");
176556
176556
  __publicField(this, "FeatureMoveProgressInfo");
176557
176557
  __publicField(this, "oldPathLineFeature");
176558
+ __publicField(this, "routeFeatures");
176558
176559
  __publicField(this, "fun", (e2) => {
176559
176560
  this.vueThis.moveFeature(e2);
176560
176561
  });
@@ -176649,6 +176650,7 @@ class PathLayer extends baseGraphicLayer {
176649
176650
  console.log("\u6CA1\u627E\u5230");
176650
176651
  return;
176651
176652
  }
176653
+ this.routeFeatures = e2.route;
176652
176654
  this.pathNodeInfo = SpatialAnalysis.lineMerger(e2.route, this.option.navigationOption.pointDistance);
176653
176655
  this.pathLineFeature = this.pathNodeInfo.line;
176654
176656
  console.log(this.pathNodeInfo);
@@ -177219,6 +177221,13 @@ class PathLayer extends baseGraphicLayer {
177219
177221
  clear() {
177220
177222
  this._source.clear();
177221
177223
  }
177224
+ pathToGeoJSON() {
177225
+ let format2 = new GeoJSON$1();
177226
+ return format2.writeFeaturesObject(this.routeFeatures, {
177227
+ dataProjection: "EPSG:4326",
177228
+ featureProjection: "EPSG:3857"
177229
+ });
177230
+ }
177222
177231
  }
177223
177232
  var ol_layer_GeoImage = function(options) {
177224
177233
  ol_layer_Image.call(this, options);