Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunrajlab committed Nov 26, 2024
1 parent 1019525 commit f7f2021
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/annotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ export function geojsAnnotationFactory(
return geojs.annotation.pointAnnotation(annotationOptions);

case AnnotationShape.Polygon:
newGeoJSAnnotation = geojs.annotation.polygonAnnotation(options);
newGeoJSAnnotation!.options("vertices", coordinates);
break;
annotationOptions.vertices = coordinates;
return geojs.annotation.polygonAnnotation(annotationOptions);

case AnnotationShape.Line:
annotationOptions.vertices = coordinates;
return geojs.annotation.lineAnnotation(annotationOptions);
Expand Down

0 comments on commit f7f2021

Please sign in to comment.