@@ -170,7 +170,7 @@ function updateSelectFeature(updated, selectfeatures) {
170170 if ( selectfeatures [ i ] . symbolType === SuperMap . Plot . SymbolType . LITERATESIGN ) {
171171 selectfeatures [ i ] . route . applyTextStyle ( { lineSymbolID : updated . value } ) ;
172172 } else {
173- if ( selectfeatures [ i ] . symbolType != 1 ) {
173+ if ( selectfeatures [ i ] . symbolType != 1 && selectfeatures [ i ] . setDashLine ) {
174174 selectfeatures [ i ] . setDashLine ( [ ] ) ;
175175 selectfeatures [ i ] . setStyle ( { lineSymbolID : 0 } ) ;
176176 }
@@ -703,6 +703,9 @@ function updateSelectFeature(updated, selectfeatures) {
703703 }
704704 else if ( code !== null ) {
705705
706+ var symbolLibManager = L . supermap . plotting . symbolLibManager ( serverUrl ) ;
707+ var subCode = symbolLibManager . findSymbolByCode ( code ) ;
708+
706709 transInfo . functionName = "setSubSymbol" ;
707710 if ( selectfeatures [ i ] . getSubSymbols ( ) [ updated . index ] ) {
708711 transInfo . undoParams = [ selectfeatures [ i ] . getSubSymbols ( ) [ updated . index ] . code , updated . index , selectfeatures [ i ] . getSubSymbols ( ) [ updated . index ] . libID ] ;
@@ -712,16 +715,18 @@ function updateSelectFeature(updated, selectfeatures) {
712715 var subSymbol = selectfeatures [ i ] . getSubSymbols ( ) [ updated . index ] ;
713716
714717 transInfo . redoParams = [ code , updated . index ] ;
715- selectfeatures [ i ] . setSubSymbol ( code , updated . index , 100 ) ;
718+ selectfeatures [ i ] . setSubSymbol ( code , updated . index , subCode [ 0 ] . libID ) ;
716719 }
717720 }
721+ var symbolLibManager = L . supermap . plotting . symbolLibManager ( serverUrl ) ;
722+ var subCode = symbolLibManager . findSymbolByCode ( subSymbol . code ) ;
718723 if ( updated . name == resources . text_subSymbolLineWidth ) {
719724 let subSymbol = selectfeatures [ i ] . getSubSymbols ( ) [ updated . index ] ;
720- selectfeatures [ i ] . setSubSymbol ( subSymbol . code , updated . index , 100 , subSymbol . lineColor , parseFloat ( updated . value ) ) ;
725+ selectfeatures [ i ] . setSubSymbol ( subSymbol . code , updated . index , subCode [ 0 ] . libID , subSymbol . lineColor , parseFloat ( updated . value ) ) ;
721726 }
722727 if ( updated . name == resources . text_subSymbolLineColor ) {
723728 let subSymbol = selectfeatures [ i ] . getSubSymbols ( ) [ updated . index ] ;
724- selectfeatures [ i ] . setSubSymbol ( subSymbol . code , updated . index , 100 , updated . value , subSymbol . width2D ) ;
729+ selectfeatures [ i ] . setSubSymbol ( subSymbol . code , updated . index , subCode [ 0 ] . libID , updated . value , subSymbol . width2D ) ;
725730 }
726731 }
727732 transaction . transInfos . push ( transInfo ) ;
0 commit comments