@@ -170,7 +170,7 @@ function updateSelectFeature(updated, selectfeatures) {
170
170
if ( selectfeatures [ i ] . symbolType === SuperMap . Plot . SymbolType . LITERATESIGN ) {
171
171
selectfeatures [ i ] . route . applyTextStyle ( { lineSymbolID : updated . value } ) ;
172
172
} else {
173
- if ( selectfeatures [ i ] . symbolType != 1 ) {
173
+ if ( selectfeatures [ i ] . symbolType != 1 && selectfeatures [ i ] . setDashLine ) {
174
174
selectfeatures [ i ] . setDashLine ( [ ] ) ;
175
175
selectfeatures [ i ] . setStyle ( { lineSymbolID : 0 } ) ;
176
176
}
@@ -703,6 +703,9 @@ function updateSelectFeature(updated, selectfeatures) {
703
703
}
704
704
else if ( code !== null ) {
705
705
706
+ var symbolLibManager = L . supermap . plotting . symbolLibManager ( serverUrl ) ;
707
+ var subCode = symbolLibManager . findSymbolByCode ( code ) ;
708
+
706
709
transInfo . functionName = "setSubSymbol" ;
707
710
if ( selectfeatures [ i ] . getSubSymbols ( ) [ updated . index ] ) {
708
711
transInfo . undoParams = [ selectfeatures [ i ] . getSubSymbols ( ) [ updated . index ] . code , updated . index , selectfeatures [ i ] . getSubSymbols ( ) [ updated . index ] . libID ] ;
@@ -712,16 +715,18 @@ function updateSelectFeature(updated, selectfeatures) {
712
715
var subSymbol = selectfeatures [ i ] . getSubSymbols ( ) [ updated . index ] ;
713
716
714
717
transInfo . redoParams = [ code , updated . index ] ;
715
- selectfeatures [ i ] . setSubSymbol ( code , updated . index , 100 ) ;
718
+ selectfeatures [ i ] . setSubSymbol ( code , updated . index , subCode [ 0 ] . libID ) ;
716
719
}
717
720
}
721
+ var symbolLibManager = L . supermap . plotting . symbolLibManager ( serverUrl ) ;
722
+ var subCode = symbolLibManager . findSymbolByCode ( subSymbol . code ) ;
718
723
if ( updated . name == resources . text_subSymbolLineWidth ) {
719
724
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 ) ) ;
721
726
}
722
727
if ( updated . name == resources . text_subSymbolLineColor ) {
723
728
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 ) ;
725
730
}
726
731
}
727
732
transaction . transInfos . push ( transInfo ) ;
0 commit comments