Skip to content

Instantly share code, notes, and snippets.

@eliotjordan
Last active October 13, 2025 20:57
Show Gist options
  • Select an option

  • Save eliotjordan/e2946fd93fc45eb90626eed9ab44bd21 to your computer and use it in GitHub Desktop.

Select an option

Save eliotjordan/e2946fd93fc45eb90626eed9ab44bd21 to your computer and use it in GitHub Desktop.
annoation-example.json
{
"type": "AnnotationPage",
"@context": "http://www.w3.org/ns/anno.jsonld",
"items": [
{
"id": "https://annotations.allmaps.org/maps/47499d84a5b2c6b2",
"type": "Annotation",
"@context": [
"http://iiif.io/api/extension/georef/1/context.json",
"http://iiif.io/api/presentation/3/context.json"
],
"motivation": "georeferencing",
"target": {
"type": "SpecificResource",
"source": {
"id": "https://iiif-cloud.princeton.edu/iiif/2/48%2Faa%2Fba%2F48aaba66f744446b92638e0cffdd4513%2Fintermediate_file",
"type": "ImageService2",
"height": 8915,
"width": 10212
},
"selector": {
"type": "SvgSelector",
"value": "<svg width=\"10212\" height=\"8915\"><polygon points=\"794,1292 3196,1307 9319,1294 9371,7130 4188,7139 725,7118 788,1882\" /></svg>"
}
},
"body": {
"type": "FeatureCollection",
"transformation": {
"type": "polynomial",
"options": {
"order": 1
}
},
"features": [
{
"type": "Feature",
"properties": {
"resourceCoords": [
0,
0
]
},
"geometry": {
"type": "Point",
"coordinates": [
19.1774683,
43.2705152
]
}
},
{
"type": "Feature",
"properties": {
"resourceCoords": [
0,
8915
]
},
"geometry": {
"type": "Point",
"coordinates": [
19.1774683,
41.9909258
]
}
},
{
"type": "Feature",
"properties": {
"resourceCoords": [
10212,
8915
]
},
"geometry": {
"type": "Point",
"coordinates": [
21.177524,
41.9909258
]
}
},
{
"type": "Feature",
"properties": {
"resourceCoords": [
10212,
0
]
},
"geometry": {
"type": "Point",
"coordinates": [
21.177524,
43.2705152
]
}
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment