mirage2d 1.1.33 → 1.1.36

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.
@@ -35612,6 +35612,7 @@ class baseLayer extends base {
35612
35612
  __publicField(this, "layerSource");
35613
35613
  __publicField(this, "layer");
35614
35614
  __publicField(this, "layerclass");
35615
+ __publicField(this, "_isShow");
35615
35616
  this.layerid = layerid;
35616
35617
  this.layerclass = "";
35617
35618
  this._map = null;
@@ -35666,6 +35667,20 @@ class baseLayer extends base {
35666
35667
  }
35667
35668
  }
35668
35669
  }
35670
+ flyto(opt_options) {
35671
+ if (this.layer.getExtent()) {
35672
+ this._map.getView().fit(this.layer.getExtent(), opt_options);
35673
+ }
35674
+ }
35675
+ setZIndex(zindex) {
35676
+ this.layer.setZIndex(zindex);
35677
+ }
35678
+ set show(visible) {
35679
+ this.layer.setVisible(visible);
35680
+ }
35681
+ get show() {
35682
+ return this.layer.getVisible();
35683
+ }
35669
35684
  }
35670
35685
  var featuretype;
35671
35686
  (function(featuretype2) {
@@ -79734,6 +79749,7 @@ class baseGraphicLayer extends baseLayer {
79734
79749
  enabledRightMenu: false,
79735
79750
  enabledPopup: false,
79736
79751
  enabledTooltip: false,
79752
+ imageRatio: 5,
79737
79753
  zIndex: 500,
79738
79754
  contextmenu: [
79739
79755
  {
@@ -80498,9 +80514,14 @@ class baseGraphicLayer extends baseLayer {
80498
80514
  class GraphicImageLayer extends baseGraphicLayer {
80499
80515
  constructor(layerid, options) {
80500
80516
  super(layerid, options);
80517
+ new Style$1({
80518
+ fill: new Fill$1({
80519
+ color: "#eeeeee"
80520
+ })
80521
+ });
80501
80522
  this.layertype = "GraphicImageLayer";
80502
80523
  this.layer = new VectorImageLayer$1({
80503
- imageRatio: 10,
80524
+ imageRatio: this.option.imageRatio,
80504
80525
  source: this._source,
80505
80526
  zIndex: this.option.zIndex
80506
80527
  });
@@ -103917,6 +103938,11 @@ class MirageMap extends baseMap {
103917
103938
  getMap() {
103918
103939
  return this._map;
103919
103940
  }
103941
+ getLayers() {
103942
+ if (this._map) {
103943
+ return this._layerArray;
103944
+ }
103945
+ }
103920
103946
  getLayer(layerid) {
103921
103947
  if (this._map) {
103922
103948
  var layers = this._map.getLayers();