gis-map-universal 0.2.6 → 0.2.7

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.
Files changed (2) hide show
  1. package/gismap.umd.js +6 -7
  2. package/package.json +1 -1
package/gismap.umd.js CHANGED
@@ -457335,6 +457335,12 @@ var LatlonPick_component = normalizeComponent(
457335
457335
  this.map.addOverlay(this.overlayPopup);
457336
457336
  this.map.on("click", (e) => {
457337
457337
  e.preventDefault();
457338
+ this.map.getView().animate({
457339
+ center: this.map.getView().getCenter(),
457340
+ zoom: this.map.getView().getZoom(),
457341
+ duration: 10
457342
+ });
457343
+ console.log('点击事件',this.map.getView().getCenter(),this.map.getView().getZoom());
457338
457344
  if (
457339
457345
  !this.map.getInteractions().getArray().includes(this.measuredraw) &&
457340
457346
  // !this.$refs.measureTool.measuredraw.getActive() &&
@@ -457370,13 +457376,6 @@ var LatlonPick_component = normalizeComponent(
457370
457376
  -this.popupHeight,
457371
457377
  ]);
457372
457378
  } else {
457373
- // const extent = boundingExtent(
457374
- // features.map((r) => r.getGeometry().getCoordinates())
457375
- // );
457376
- // this.map.getView().fit(extent, {
457377
- // duration: 1000,
457378
- // padding: [500, 500, 500, 500],
457379
- // });
457380
457379
  this.map.getView().animate({
457381
457380
  center: feature.getGeometry().getCoordinates(),
457382
457381
  zoom: this.map.getView().getZoom() * 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gis-map-universal",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "GIS通用组件",
5
5
  "main": "gismap.umd.js",
6
6
  "private": false,