ym-giswidget-2d 1.0.36 → 1.0.37

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.
@@ -74,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
74
74
  }
75
75
  }
76
76
  if (unionGeometry) {
77
- props.map.getView().locationGeometry(unionGeometry);
77
+ props.map.locationGeometry(unionGeometry);
78
78
  }
79
79
  }
80
80
  function showImportResult(res) {
@@ -106,7 +106,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
106
  }
107
107
  (_a = templayer.getSource()) == null ? void 0 : _a.addFeatures(features);
108
108
  if (unionGeometry) {
109
- props.map.getView().locationGeometry(unionGeometry);
109
+ props.map.locationGeometry(unionGeometry);
110
110
  }
111
111
  }
112
112
  function getStyle(geoType) {
@@ -392,6 +392,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
392
392
  getExtent: () => import('ol/extent').Extent;
393
393
  addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default) => void;
394
394
  addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default) => void;
395
+ locationWKT: (wkt: string, proj?: string, ratio?: number, isFlash?: boolean) => void;
396
+ locationWKTs: (wkts: string[], proj?: string, ratio?: number, isFlash?: boolean) => void;
397
+ locationGeometry: (geometry: import('ol/geom').Geometry, proj?: string, ratio?: number, isFlash?: boolean) => void;
398
+ locationGeometrys: (geometrys: import('ol/geom').Geometry[], proj?: string, ratio?: number, isFlash?: boolean) => void;
395
399
  on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
396
400
  once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
397
401
  un: import('ol/Map').MapEventHandler<void>;
@@ -391,6 +391,10 @@ export declare const MapView: import('../../utils').WithInstall<import('vue').De
391
391
  getExtent: () => import('ol/extent').Extent;
392
392
  addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default) => void;
393
393
  addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default) => void;
394
+ locationWKT: (wkt: string, proj?: string, ratio?: number, isFlash?: boolean) => void;
395
+ locationWKTs: (wkts: string[], proj?: string, ratio?: number, isFlash?: boolean) => void;
396
+ locationGeometry: (geometry: import('ol/geom').Geometry, proj?: string, ratio?: number, isFlash?: boolean) => void;
397
+ locationGeometrys: (geometrys: import('ol/geom').Geometry[], proj?: string, ratio?: number, isFlash?: boolean) => void;
394
398
  on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
395
399
  once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
396
400
  un: import('ol/Map').MapEventHandler<void>;
@@ -398,6 +398,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
398
398
  getExtent: () => import('ol/extent').Extent;
399
399
  addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default) => void;
400
400
  addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default) => void;
401
+ locationWKT: (wkt: string, proj?: string, ratio?: number, isFlash?: boolean) => void;
402
+ locationWKTs: (wkts: string[], proj?: string, ratio?: number, isFlash?: boolean) => void;
403
+ locationGeometry: (geometry: import('ol/geom').Geometry, proj?: string, ratio?: number, isFlash?: boolean) => void;
404
+ locationGeometrys: (geometrys: import('ol/geom').Geometry[], proj?: string, ratio?: number, isFlash?: boolean) => void;
401
405
  on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
402
406
  once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
403
407
  un: import('ol/Map').MapEventHandler<void>;
@@ -394,6 +394,10 @@ export declare const MultiScreen: import('../../utils').WithInstall<import('vue'
394
394
  getExtent: () => import('ol/extent').Extent;
395
395
  addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default) => void;
396
396
  addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default) => void;
397
+ locationWKT: (wkt: string, proj?: string, ratio?: number, isFlash?: boolean) => void;
398
+ locationWKTs: (wkts: string[], proj?: string, ratio?: number, isFlash?: boolean) => void;
399
+ locationGeometry: (geometry: import('ol/geom').Geometry, proj?: string, ratio?: number, isFlash?: boolean) => void;
400
+ locationGeometrys: (geometrys: import('ol/geom').Geometry[], proj?: string, ratio?: number, isFlash?: boolean) => void;
397
401
  on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
398
402
  once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
399
403
  un: import('ol/Map').MapEventHandler<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ym-giswidget-2d",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -10,6 +10,6 @@
10
10
  "element-plus": "^2.9.0",
11
11
  "jszip": "^3.10.1",
12
12
  "ol": "^9.2.4",
13
- "ym-gis-2d": "1.0.14"
13
+ "ym-gis-2d": "1.0.16"
14
14
  }
15
15
  }