File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ export default class DrawPoint extends DrawObject {
3838 const { classificationType} = that . _symbol ;
3939 res . classificationType = classificationType ;
4040 const { style} = that . _symbol ;
41- if ( style ) {
42- res . initNodeStyles ( style ) ;
41+ if ( style && style . nodeStyles ) {
42+ res . initNodeStyles ( style . nodeStyles ) ;
4343 }
4444
4545 that . _primitive = PrimitiveFactory . createInstance ( symbol . type , {
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ export default class DrawPolyline extends DrawObject {
6262 const { classificationType} = that . _symbol ;
6363 res . classificationType = classificationType ;
6464 const { style} = that . _symbol ;
65- if ( style ) {
66- res . initNodeStyles ( style ) ;
65+ if ( style && style . nodeStyles ) {
66+ res . initNodeStyles ( style . nodeStyles ) ;
6767 }
6868 that . _primitive = PrimitiveFactory . createInstance ( symbol . type , {
6969 positions : that . m_coords ,
You can’t perform that action at this time.
0 commit comments