Comparing version 1.0.54 to 1.0.55
{ | ||
"name": "venus-map", | ||
"version": "1.0.54", | ||
"version": "1.0.55", | ||
"description": "tq-fed-map", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
@@ -107,4 +107,7 @@ import Feature from 'ol/Feature' | ||
destroy() { | ||
if (this.source) { | ||
this.source.removeFeature(this.feature) | ||
if (this.layer) { | ||
const { source, animationLayer } = this.layer | ||
source.removeFeature(this.feature) | ||
animationLayer.getSource().removeFeature(this.animationFeature) | ||
} | ||
@@ -111,0 +114,0 @@ } |
import OlMap from 'ol/Map' | ||
import View from 'ol/View' | ||
import * as extent from 'ol/extent' | ||
import BaseLayerControl from './controls/BaseLayerControl' | ||
@@ -140,2 +141,13 @@ import 'ol/ol.css' | ||
} | ||
getCurrExtent() { | ||
const ce = this.baseView.calculateExtent(this.instance.getSize()) | ||
return { | ||
bl: coordinateTransfer.MKT2GPS(extent.getBottomLeft(ce)), | ||
br: coordinateTransfer.MKT2GPS(extent.getBottomRight(ce)), | ||
tl: coordinateTransfer.MKT2GPS(extent.getTopLeft(ce)), | ||
tr: coordinateTransfer.MKT2GPS(extent.getTopRight(ce)), | ||
center: coordinateTransfer.MKT2GPS(extent.getCenter(ce)), | ||
} | ||
} | ||
} | ||
@@ -142,0 +154,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3399394
6979