shuishen
2021-06-08 599f0458111446d39b250e8abc2e71b3f7fc213b
widgets/HomeButton/Widget.js
@@ -32,6 +32,9 @@
        this.inherited(arguments);
        var homeButton = new Cesium.HomeButton(this.domNode, this.map.scene);
        $(".jimu-widget-homebutton button.cesium-button").html("<img src='../../../images/回到原来的视角.png' alt=''>");
        // Subscribe to the home button beforeExecute event so that we can clear the trackedEntity.
        this.map._eventHelper.add(homeButton.viewModel.command.beforeExecute, Cesium.Viewer.prototype._clearTrackedObject, this.map);