liuyg
2021-06-08 0ded284e8ef21e2e767d0b7b2661655cf1dc7eaf
widgets/FullScreen/Widget.js
@@ -22,15 +22,31 @@
      this.inherited(arguments);
      new Cesium.FullscreenButton(this.domNode, null);
      $('.cesium-fullscreenButton').attr('title','全屏视角');
      $('.cesium-fullscreenButton').attr('title', '全屏视角');
      $(".jimu-widget-fullScreen button.cesium-button").html("<img src='../../../images/全屏.png' alt=''>");
      $('.jimu-widget-fullScreen button.cesium-button').click(function () {
        var title = $(this).attr('title');
        if (title == "Exit full screen") {
          $(".jimu-widget-fullScreen button.cesium-button").html("<img src='../../../images/全屏.png' alt=''>");
        } else {
          $(".jimu-widget-fullScreen button.cesium-button").html("<img src='../../../images/收缩.png' alt=''>");
        }
      })
    },
    setPosition: function (/*position*/) {
    setPosition: function ( /*position*/ ) {
      this.inherited(arguments);
    },
  });
  return clazz;