Skip to content

Commit

Permalink
load geojson userdata into paper item data.userdata
Browse files Browse the repository at this point in the history
  • Loading branch information
pearcetm committed May 19, 2024
1 parent 017e2f8 commit 2f7356e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/paperitems/annotationitem.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ class AnnotationItemFactory{
let ctor = AnnotationItemFactory.getConstructor(geoJSON);
if(ctor){
let annotationItem = new ctor(geoJSON);
annotationItem.paperItem.data.userdata = geoJSON.properties?.userdata;
return annotationItem.paperItem;
}
}
Expand Down

0 comments on commit 2f7356e

Please sign in to comment.