mirage2d 1.1.26 → 1.1.28
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/dist/mirage2d.es.js
CHANGED
|
@@ -79737,6 +79737,7 @@ class baseGraphicLayer extends baseLayer {
|
|
|
79737
79737
|
enabledRightMenu: false,
|
|
79738
79738
|
enabledPopup: false,
|
|
79739
79739
|
enabledTooltip: false,
|
|
79740
|
+
zIndex: 500,
|
|
79740
79741
|
contextmenu: [
|
|
79741
79742
|
{
|
|
79742
79743
|
classname: "menudisabled",
|
|
@@ -79971,9 +79972,11 @@ class baseGraphicLayer extends baseLayer {
|
|
|
79971
79972
|
}
|
|
79972
79973
|
_bindPoupEvent() {
|
|
79973
79974
|
let _popupCloser = document.getElementById("popup-closer");
|
|
79974
|
-
|
|
79975
|
-
|
|
79976
|
-
|
|
79975
|
+
if (_popupCloser) {
|
|
79976
|
+
_popupCloser.onclick = () => {
|
|
79977
|
+
this.closePopup();
|
|
79978
|
+
};
|
|
79979
|
+
}
|
|
79977
79980
|
}
|
|
79978
79981
|
bindPopup(popupInfo, option = { offset: [0, 0] }) {
|
|
79979
79982
|
this.option.enabledPopup = true;
|
|
@@ -80335,7 +80338,7 @@ class baseGraphicLayer extends baseLayer {
|
|
|
80335
80338
|
let data2 = feature2.get(levelOption.attributeName);
|
|
80336
80339
|
if (data2) {
|
|
80337
80340
|
if (parseInt(data2) == 0) {
|
|
80338
|
-
let mStyle = MirageDefaultStyle.getStyle(feature2.getGeometry().getType(), { fillcolor: "rgba(255,255,255,0)", strokecolor: "rgba(255,255,255,0.1)", strokewidth: 1 });
|
|
80341
|
+
let mStyle = MirageDefaultStyle.getStyle(feature2.getGeometry().getType(), { fillcolor: "rgba(255,255,255,0)", strokecolor: "rgba(255,255,255,0.1)", strokewidth: 0.1 });
|
|
80339
80342
|
feature2.setStyle(mStyle);
|
|
80340
80343
|
} else {
|
|
80341
80344
|
for (let x2 = 0; x2 < mLevelColor.length; x2++) {
|
|
@@ -80502,7 +80505,7 @@ class GraphicImageLayer extends baseGraphicLayer {
|
|
|
80502
80505
|
this.layer = new VectorImageLayer$1({
|
|
80503
80506
|
imageRatio: 10,
|
|
80504
80507
|
source: this._source,
|
|
80505
|
-
zIndex:
|
|
80508
|
+
zIndex: this.option.zIndex
|
|
80506
80509
|
});
|
|
80507
80510
|
this.layer.set("layerid", layerid);
|
|
80508
80511
|
this.layer.on(this.EventType.featureType.onFeatureContextmenu, (evt) => {
|