v-ol-map 1.4.0 → 1.4.1
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.
- package/lib/ol-map.es.js +6 -6
- package/lib/ol-map.umd.js +3 -3
- package/package.json +1 -1
package/lib/ol-map.es.js
CHANGED
|
@@ -15851,7 +15851,7 @@ const c8 = {
|
|
|
15851
15851
|
},
|
|
15852
15852
|
mounted() {
|
|
15853
15853
|
this.init().then((i) => {
|
|
15854
|
-
i === "success" && (this.map.on("singleclick", (n) => {
|
|
15854
|
+
i === "success" && (console.log("map load"), this.map.on("singleclick", (n) => {
|
|
15855
15855
|
this.$emit("click", n, this.map), this.map.forEachSmFeatureAtPixel(n.pixel, (t, e) => {
|
|
15856
15856
|
this.$emit("clickfeature", t, e, n);
|
|
15857
15857
|
}, {}, n);
|
|
@@ -17807,7 +17807,8 @@ const P7 = {
|
|
|
17807
17807
|
this.layer.getSource().addFeatures(n);
|
|
17808
17808
|
}
|
|
17809
17809
|
},
|
|
17810
|
-
immediate: !1
|
|
17810
|
+
immediate: !1,
|
|
17811
|
+
deep: !0
|
|
17811
17812
|
},
|
|
17812
17813
|
visible: {
|
|
17813
17814
|
handler(i) {
|
|
@@ -17837,7 +17838,8 @@ const P7 = {
|
|
|
17837
17838
|
handler(i) {
|
|
17838
17839
|
this.layer.setExtent(i);
|
|
17839
17840
|
},
|
|
17840
|
-
immediate: !1
|
|
17841
|
+
immediate: !1,
|
|
17842
|
+
deep: !0
|
|
17841
17843
|
},
|
|
17842
17844
|
modify: {
|
|
17843
17845
|
handler(i) {
|
|
@@ -22163,7 +22165,7 @@ V.prototype.timePointsPlay = function() {
|
|
|
22163
22165
|
}
|
|
22164
22166
|
i.carMarker.setPosition(o[i._traceIndex].coordinate), i.changeCarRotate && i.carMarker.setRotateAngle(o[i._traceIndex].rotate);
|
|
22165
22167
|
const f = i._troughPointIndex(n[i._pointIndex].coordinate);
|
|
22166
|
-
i._opts.showInfoWin && (i._pathInfo[f] ? (
|
|
22168
|
+
i._opts.showInfoWin && (i._pathInfo[f] ? (i._carInfoWin.getElement().innerText = i._pathInfo[f].info, i._carInfoWin.setPosition([i._pathInfo[f].longitude, i._pathInfo[f].latitude])) : (i._carInfoWin.getElement().innerText = "", i._carInfoWin.setPosition(void 0)));
|
|
22167
22169
|
}
|
|
22168
22170
|
const h = i._map.getView().calculateExtent(), l = i.carMarker.getPosition();
|
|
22169
22171
|
!ze(h, l) && i.centerAtCar && i._map.getView().animate({
|
|
@@ -22213,7 +22215,6 @@ V.prototype._addInfoWin = function() {
|
|
|
22213
22215
|
i._carInfoWin.setPosition(n);
|
|
22214
22216
|
return;
|
|
22215
22217
|
}
|
|
22216
|
-
console.log(i._opts);
|
|
22217
22218
|
const t = document.createElement("div");
|
|
22218
22219
|
t.className = "carOverlay-class", t.innerText = "";
|
|
22219
22220
|
const e = new M2({
|
|
@@ -22351,7 +22352,6 @@ V.prototype._initLinesAndMarkers = function() {
|
|
|
22351
22352
|
s.set("type", "end"), s.set("id", a), s.set("number", parseInt(r) + 1), i.traceNodes.push(s);
|
|
22352
22353
|
}
|
|
22353
22354
|
}
|
|
22354
|
-
console.log(i._pathInfo), console.log(i.traceNodes);
|
|
22355
22355
|
for (let e = 0; e < i._pathInfo.length - 1; e++) {
|
|
22356
22356
|
const r = [i._pathInfo[e].longitude, i._pathInfo[e].latitude], o = [i._pathInfo[e + 1].longitude, i._pathInfo[e + 1].latitude], a = new jt({
|
|
22357
22357
|
geometry: new Zt([r, o])
|