@@ -380,9 +380,9 @@ export async function to_geojson(cot: CoT): Promise<Static<typeof Feature>> {
380380 if ( rawColor . startsWith ( '#' ) ) rawColor = rawColor . substring ( 1 ) ;
381381
382382 const a = parseInt ( rawColor . substring ( 0 , 2 ) , 16 ) ;
383- const b = parseInt ( rawColor . substring ( 2 , 4 ) , 16 ) ;
383+ const r = parseInt ( rawColor . substring ( 2 , 4 ) , 16 ) ;
384384 const g = parseInt ( rawColor . substring ( 4 , 6 ) , 16 ) ;
385- const r = parseInt ( rawColor . substring ( 6 , 8 ) , 16 ) ;
385+ const b = parseInt ( rawColor . substring ( 6 , 8 ) , 16 ) ;
386386
387387 const strokeColor = new Color ( [ a , r , g , b ] ) ;
388388 feat . properties . stroke = strokeColor . as_hex ( ) ;
@@ -399,9 +399,9 @@ export async function to_geojson(cot: CoT): Promise<Static<typeof Feature>> {
399399 if ( rawColor . startsWith ( '#' ) ) rawColor = rawColor . substring ( 1 ) ;
400400
401401 const a = parseInt ( rawColor . substring ( 0 , 2 ) , 16 ) ;
402- const b = parseInt ( rawColor . substring ( 2 , 4 ) , 16 ) ;
402+ const r = parseInt ( rawColor . substring ( 2 , 4 ) , 16 ) ;
403403 const g = parseInt ( rawColor . substring ( 4 , 6 ) , 16 ) ;
404- const r = parseInt ( rawColor . substring ( 6 , 8 ) , 16 ) ;
404+ const b = parseInt ( rawColor . substring ( 6 , 8 ) , 16 ) ;
405405
406406 const fillColor = new Color ( [ a , r , g , b ] ) ;
407407 feat . properties [ 'fill-opacity' ] = fillColor . as_opacity ( ) / 255 ;
0 commit comments