Skip to content

Commit 06c97c7

Browse files
anyanruhhyu1
authored andcommitted
修改面板引用;Demo错误
1 parent 6742866 commit 06c97c7

File tree

4 files changed

+18
-49
lines changed

4 files changed

+18
-49
lines changed

examples/js/include-web.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
inputScript("http://iclient.supermap.io/libs/iclient8c/examples/js/jquery.colorpicker.js");
132132
}
133133
if (inArray(includes, 'fileupLoad')) {
134-
//inputScript("http://iclient.supermap.io/libs/iclient8c/examples/js/jquery.js");
134+
inputScript("http://iclient.supermap.io/libs/iclient8c/examples/js/jquery.js");
135135
inputScript("http://iclient.supermap.io/libs/iclient8c/examples/js/fileupLoad.js");
136136
}
137137
if (inArray(includes, 'sticklr')) {
@@ -141,30 +141,27 @@
141141
if (inArray(includes, 'responsive')) {
142142
inputCSS("http://iclient.supermap.io/libs/iclient8c/examples/css/bootstrap-responsive.min.css");
143143
}
144-
if (inArray(includes, 'easyui')) {
145-
inputScript("http://iclient.supermap.io/libs/iclient8c/examples/js/plottingPanel/jquery-easyui-1.4.4/jquery.easyui.min.js");
146-
inputCSS("http://iclient.supermap.io/libs/iclient8c/examples/js/plottingPanel/jquery-easyui-1.4.4/css/easyui.css");
147-
}
148-
if (inArray(includes, 'jquery-colorpicker')) {
149-
// inputScript("http://iclient.supermap.io/libs/colorpicker/js/colorpicker.js");
150-
// inputCSS("http://iclient.supermap.io/libs/colorpicker/css/colorpicker.css");
151-
inputScript("../../../iclient9-web/libs/colorpicker/js/colorpicker.js");
152-
inputCSS("../../../iclient9-web/libs/colorpicker/css/colorpicker.css");
153-
}
154144
if (inArray(includes, 'lazyload')) {
155145
inputScript("https://cdn.bootcss.com/jquery_lazyload/1.9.7/jquery.lazyload.min.js");
156146
}
157147
if (inArray(includes, 'i18n')) {
158148
inputScript("https://cdn.bootcss.com/i18next/10.0.7/i18next.min.js");
159149
inputScript("https://cdn.bootcss.com/jquery-i18next/1.2.1/jquery-i18next.min.js");
160150
}
161-
if (inArray(includes, 'ionRangeSlider')) {
151+
if (inArray(includes, 'ionRangeSlider')) {
162152
inputCSS("https://cdn.bootcss.com/ion-rangeslider/2.2.0/css/ion.rangeSlider.css");
163153
inputCSS("https://cdn.bootcss.com/normalize/8.0.0/normalize.css");
164154
inputCSS("https://cdn.bootcss.com/ion-rangeslider/2.2.0/css/ion.rangeSlider.skinHTML5.css");
165155
inputScript("https://cdn.bootcss.com/ion-rangeslider/2.2.0/js/ion.rangeSlider.min.js");
166156
}
167-
}
157+
if (inArray(includes, 'plottingPanel')) {
158+
inputScript("http://iclient.supermap.io/libs/iclient8c/examples/js/plottingPanel/zTree/jquery.ztree.core.js");
159+
inputCSS("http://iclient.supermap.io/libs/iclient8c/examples/js/plottingPanel/zTree/css/zTreeStyle.css");
160+
inputScript("http://iclient.supermap.io/libs/iclient8c/examples/js/plottingPanel/jquery-easyui-1.4.4/jquery.easyui.min.js");
161+
inputCSS("http://iclient.supermap.io/libs/iclient8c/examples/js/plottingPanel/jquery-easyui-1.4.4/css/easyui.css");
162+
inputScript("http://iclient.supermap.io/libs/iclient8c/examples/js/plottingPanel/colorpicker/js/colorpicker.js");
163+
inputCSS("http://iclient.supermap.io/libs/iclient8c/examples/js/plottingPanel/colorpicker/css/colorpicker.css");
164+
} }
168165

169166
function datGuiI18N() {
170167
document.writeln("<script>function registerEventListener(evt,fn){" +
Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function () {
2-
var r = new RegExp("(^|(.*?\\/))(include-leaflet\.js)(\\?|$)"),
2+
var r = new RegExp("(^|(.*?\\/))(PlottingPanel.Include\.js)(\\?|$)"),
33
s = document.getElementsByTagName('script'), targetScript;
44
for (var i = 0; i < s.length; i++) {
55
var src = s[i].getAttribute('src');
@@ -36,46 +36,17 @@
3636
var includes = (targetScript.getAttribute('include') || "").split(",");
3737
var excludes = (targetScript.getAttribute('exclude') || "").split(",");
3838

39-
if (!inArray(excludes, 'PlotPanel')) {
39+
if (inArray(includes, 'PlotPanel')) {
4040
inputScript("../js/plottingPanel/PlotPanel.js");
4141
}
4242
if (inArray(includes, 'StylePanel')) {
4343
inputScript("../js/plottingPanel/customEditor/ColorpickerEditor.js");
4444
inputScript("../js/plottingPanel/StylePanel.js");
4545
}
46-
if (!inArray(excludes, 'SMLInfosPanel')) {
46+
if (inArray(includes, 'SMLInfosPanel')) {
4747
inputScript("../js/plottingPanel/SMLInfosPanel.js");
4848
}
4949
}
5050

5151
load();
5252
})();
53-
54-
55-
(function() {
56-
var r = new RegExp("(^|(.*?\\/))(PlottingPanel.Include\.js)(\\?|$)"),
57-
s = document.getElementsByTagName('script'),
58-
src, m, baseurl = "";
59-
for(var i=0, len=s.length; i<len; i++) {
60-
src = s[i].getAttribute('src');
61-
if(src) {
62-
var m = src.match(r);
63-
if(m) {
64-
baseurl = m[1];
65-
break;
66-
}
67-
}
68-
}
69-
function inputScript(inc){
70-
var script = '<' + 'script type="text/javascript" src="' + inc + '"' + '><' + '/script>';
71-
document.writeln(script);
72-
}
73-
//加载类库资源文件
74-
function loadSMLibs() {
75-
inputScript(baseurl+'customEditor/ColorpickerEditor.js');
76-
inputScript(baseurl+'PlotPanel.js');
77-
inputScript(baseurl+'StylePanel.js');
78-
inputScript(baseurl+'SMLInfosPanel.js');
79-
}
80-
loadSMLibs();
81-
})();

examples/leaflet/plot_dynamicPlot.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#plottingMenu {
2727
position: absolute;
2828
top: 20%;
29-
z-index: 999999;
29+
z-index: 110;
3030
border-radius: 4px;
3131
padding-top: 2px;
3232
left: 210px;
@@ -170,7 +170,7 @@
170170
<div id="contentMe" style="width:100px;background-color:#f4f4f4;box-shadow:3px 3px 3px rgba(0,0,0,0.5);position:absolute;z-index:1000; top:20px;left:100px;display:none;text-align:center;">
171171
<a href="javascript:void(0)" id="paste" style="border-bottom:1px solid #ccc;display:block;line-height:20px;color:#000; font-size:16px;">粘贴此处</a></a>
172172
</div>
173-
<script type="text/javascript" include="bootstrap,responsive,sticklr,jquery-colorpicker,zTree,easyui" src="../js/include-web.js"></script>
173+
<script type="text/javascript" include="bootstrap,responsive,sticklr,plottingPanel" src="../js/include-web.js"></script>
174174
<script type="text/javascript" include="leaflet,iclient9-leaflet,iclient9-plot-leaflet" src="../../dist/include-leaflet.js"></script>
175175
<script type="text/javascript" include="PlotPanel,StylePanel" src="../js/plottingPanel/PlottingPanel.Include.js"></script>
176176

examples/leaflet/plot_plotGOAnimation.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ <h5 class="panel-title text-center" style=" font-size: 16px;color: #ffffff;">态
120120
editControl.addTo(map);
121121
L.supermap.plotting.initPlotPanel("plotPanel", serverUrl, drawControl);
122122
L.supermap.plotting.initStylePanel("stylePanel", serverUrl, editControl);
123-
124-
goAnimationManager = L.supermap.plotting.getControl(map, serverUrl).getGOAnimationManager();
123+
var plotting = L.supermap.plotting.getControl(map, serverUrl);
124+
var goAnimationManager = plotting.getGOAnimationManager();
125+
125126
window.setInterval("execute()",100);
126127

127128
//播放动画

0 commit comments

Comments
 (0)