| | |
| | | |
| | | <body> |
| | | <div class="LibraryHead"> |
| | | <!-- <button type="button" title="打开" id='open' class="open layui-btn layui-btn-sm"> |
| | | <button type="button" title="打开" id='open' class="open layui-btn layui-btn-sm"> |
| | | <i class="layui-icon"></i> |
| | | </button> |
| | | <button type="button" title="保存" class="save layui-btn layui-btn-sm layui-btn-normal"> |
| | | <i class="layui-icon"></i> |
| | | </button> --> |
| | | </button> |
| | | <button type="button" title="是否开启编辑" class="edit layui-btn layui-btn-sm layui-btn-warm"> |
| | | <i class="layui-icon"></i> |
| | | </button> |
| | |
| | | </div> |
| | | </div> |
| | | <script src="../layui/layui.js"></script> |
| | | <script src="../jquery-3.5.0.min.js"></script> |
| | | <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script> |
| | | <script> |
| | | var Viewer = parent.earthCtrl.viewer; |
| | | var sgworld = parent.earthCtrl; |
| | | var Cesium = parent.Cesium; |
| | | var ModelLibraryURL = 'http://192.168.37.60:8088/ModelLibrary/' |
| | | var ModelLibraryURL = 'https://cim.smartearth.cn/sdkdemo/ModelLibrary/' |
| | | var imgRootURL = ModelLibraryURL + 'image/'; |
| | | |
| | | //获取数据 |
| | |
| | | |
| | | //开启编辑并启用属性弹窗 |
| | | let isEdit = true; |
| | | sgworld.factory.SimpleGraphic.edit(true, { editProp: true ,showRightButton:true}); |
| | | sgworld.factory.SimpleGraphic.edit(true, { editProp: true }); |
| | | |
| | | layui.use(['element', 'form', 'slider', 'upload'], function () { |
| | | window.element = layui.element; //Tab的切换功能,切换事件监听等,需要依赖element模块 |