XWWitPark/witpark_jzzs/xw_jzzs_web/public/widgets/bookmark/widget.js

2 lines
713 B
JavaScript
Raw Normal View History

2024-09-12 00:10:00 +00:00
/* 2020-9-24 14:48:21 | 版权所有 军懋国兴 */
mars3d.widget.bindClass(mars3d.widget.BaseWidget.extend({options:{view:{type:"window",url:"view.html",windowOptions:{width:210,height:400}}},viewWindow:null,winCreateOK:function(i,t){this.viewWindow=t},activate:function(){},disable:function(){this.viewWindow=null},showExtent:function(i){console.log("书签定位:"+JSON.stringify(i)),this.viewer.mars.centerAt(i,{isWgs84:!0})},getDefaultExtent:function(){return this.viewer.mars.config.center},getThisExtent:function(t){var e=mars3d.point.getCameraView(this.viewer,!0);return haoutil.loading.show(),viewer.mars.expImage({download:!1,width:300,calback:function(i){haoutil.loading.close(),t&&t(e,i)}}),e}}));