55 < title data-i18n ="resources.title_defaultStyle "> </ title >
66 < script type ="text/javascript " include ="bootstrap-css,responsive,colorpicker " src ="../js/include-web.js "> </ script >
77</ head >
8- < body style =" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0; ">
9- < div id ="toolbar " class ="panel panel-primary " style ="position: absolute;top: 10px;right: 10px;width: 300px;text-align: center;z-index: 800;border-radius: 4px; ">
8+ < body style =" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0; ">
9+ < div id ="toolbar " class ="panel panel-primary "
10+ style ="position: absolute;top: 10px;right: 10px;width: 300px;text-align: center;z-index: 800;border-radius: 4px; ">
1011 < div class ='panel-heading '>
1112 < h5 class ='panel-title text-center '> 缺省属性</ h5 > </ div >
1213 < div class ='panel-body content '>
@@ -15,29 +16,29 @@ <h5 class='panel-title text-center'>缺省属性</h5></div>
1516 < span class ='input-group-addon '> 线宽:</ span >
1617 < input type ='text ' class ='form-control ' id ='lineWidth ' value ='2 ' onchange ="lineWidthChanges() "/>
1718 </ div >
18- < div class ='input-group ' style ="margin-bottom: 15px; ">
19+ < div class ='input-group ' style ="margin-bottom: 15px; ">
1920 < span class ='input-group-addon '> 线型:</ span >
2021 < select class ='form-control ' id ='lineStyle ' onchange ="lineStyleChanges() ">
21- < option value ='0,0 ' > solid</ option >
22+ < option value ='0,0 '> solid</ option >
2223 < option value ='1,5 '> dot</ option >
2324 < option value ='5,10 '> dash</ option >
2425 < option value ='5,5,1,5 '> dashdot</ option >
2526 < option value ='10,5 '> longdash</ option >
2627 < option value ='15,10,5,10 '> longdashdot</ option >
2728 </ select >
2829 </ div >
29- < div class ='input-group 'style ="margin-bottom: 15px; ">
30+ < div class ='input-group ' style ="margin-bottom: 15px; ">
3031 < span class ='input-group-addon '> 线色:</ span >
3132 < input type ="text " id ="lineColor " value ="" class ='form-control '/>
3233 < span class ='input-group-addon '> < img src ='../img/colorpicker.png ' id ="cp1 "
33- style ="cursor:pointer z-index: 9999; " /> </ span >
34+ style ="cursor:pointer z-index: 9999; "/> </ span >
3435 </ div >
3536
36- < div class ='input-group 'style ="margin-bottom: 15px; ">
37+ < div class ='input-group ' style ="margin-bottom: 15px; ">
3738 < span class ='input-group-addon '> 标号宽度:</ span >
3839 < input type ='text ' class ='form-control ' id ='symbolWidth ' value ='40 ' onchange ="symbolWidthChanges() "/>
3940 </ div >
40- < div class ='input-group 'style ="margin-bottom: 15px; ">
41+ < div class ='input-group ' style ="margin-bottom: 15px; ">
4142 < span class ='input-group-addon '> 标号高度:</ span >
4243 < input type ='text ' class ='form-control ' id ='symbolHeight ' value ='40 ' onchange ="symbolHeightChanges() "/>
4344 </ div >
@@ -54,12 +55,13 @@ <h5 class='panel-title text-center'>缺省属性</h5></div>
5455 </ div >
5556</ div >
5657< div id ="map " style ="margin:0 auto;width: 100%;height: 100% "> </ div >
57- < script type ="text/javascript " include ="leaflet,iclient9-leaflet,iclient9-leaflet-css,iclient9-plot-leaflet " src ="../../dist/include-leaflet.js "> </ script >
58+ < script type ="text/javascript " include ="leaflet,iclient9-leaflet,iclient9-leaflet-css,iclient9-plot-leaflet "
59+ src ="../../dist/include-leaflet.js "> </ script >
5860< script type ="text/javascript ">
5961 var host = window . isLocal ? window . server : "http://support.supermap.com.cn:8090" ;
6062 var url = host + "/iserver/services/map-world/rest/maps/World" ;
6163 var serverUrl = host + "/iserver/services/plot-jingyong/rest/plot/" ;
62- var map , symbolLibManager ;
64+ var map , symbolLibManager ;
6365 map = L . map ( 'map' , {
6466 preferCanvas : true ,
6567 crs : L . CRS . EPSG4326 ,
@@ -75,12 +77,12 @@ <h5 class='panel-title text-center'>缺省属性</h5></div>
7577 var editControl = L . supermap . plotting . editControl ( ) ;
7678 editControl . addTo ( map ) ;
7779 var plotting = L . supermap . plotting . getControl ( map , serverUrl ) ;
78- function loadSymbolLib ( ) {
80+ function loadSymbolLib ( ) {
7981 symbolLibManager = plotting . getSymbolLibManager ( ) ;
80- symbolLibManager . on ( L . supermap . plotting . event . initializecompleted , initializeCompleted ) ;
82+ symbolLibManager . on ( L . supermap . plotting . event . initializecompleted , initializeCompleted ) ;
8183 symbolLibManager . initializeAsync ( ) ;
8284 }
83- function initializeCompleted ( ) {
85+ function initializeCompleted ( ) {
8486 initHtml ( ) ;
8587 }
8688 function initHtml ( ) {
@@ -125,16 +127,16 @@ <h5 class='panel-title text-center'>缺省属性</h5></div>
125127 }
126128 }
127129
128- function plotSymbol ( ) {
130+ function plotSymbol ( ) {
129131 drawControl . handler . serverUrl = serverUrl ;
130132 drawControl . handler . libID = 421 ;
131133 drawControl . handler . code = 20100 ;
132134 drawControl . handler . enable ( ) ;
133135 }
134- function PlottingDrawCancel ( ) {
136+ function PlottingDrawCancel ( ) {
135137 drawControl . handler . disable ( ) ;
136138 }
137- function PlottingClear ( ) {
139+ function PlottingClear ( ) {
138140 plottingLayer . removeAllFeatures ( ) ;
139141 }
140142
@@ -155,7 +157,7 @@ <h5 class='panel-title text-center'>缺省属性</h5></div>
155157 PlottingDrawCancel ( ) ;
156158 plotting . getDefaultStyle ( ) . lineColor = document . getElementById ( "lineColor" ) . value ;
157159 }
158- window . onload = function ( ) {
160+ window . onload = function ( ) {
159161 loadSymbolLib ( ) ;
160162 } ;
161163</ script >
0 commit comments