Skip to content

Commit

Permalink
Build + demo site fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimon committed Jun 9, 2022
1 parent 7a9a691 commit 757c94a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 27 deletions.
51 changes: 27 additions & 24 deletions docs/annotations.w3c.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
[{
"type": "Annotation",
"@context": "http://www.w3.org/ns/anno.jsonld",
"id": "#0d2d01a3-a07c-4dbc-804d-9f6aa32481ef",
"body": [
{
"purpose": "geotagging",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-75.23437500000001,
-10.574222078332806
]
[
{
"type": "Annotation",
"body": [
{
"purpose": "geotagging",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
14.286198,
48.3059078
]
},
"source": "https://www.openstreetmap.org/node/25181326"
}
}
],
"target": {
"source": "http://localhost:3000/Epitome_theatri_Ortelianii.jpg",
"selector": {
"type": "FragmentSelector",
"conformsTo": "http://www.w3.org/TR/media-frags/",
"value": "xywh=pixel:589,284,54,85"
}
],
"target": {
"source": "file:///home/rainers/Workspaces/recogito/geotagging-widget/docs/ortelius_austria.jpg",
"selector": {
"type": "FragmentSelector",
"conformsTo": "http://www.w3.org/TR/media-frags/",
"value": "xywh=pixel:363.781982421875,497.2524719238281,121.9967041015625,75.66885375976562"
}
},
"@context": "http://www.w3.org/ns/anno.jsonld",
"id": "#d2c2b90a-aa02-42e8-9dac-1b8734971adc"
}
}]
]
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Annotorious | Geotagging Widget</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected]/dist/annotorious.min.css">
<script src="https://cdn.jsdelivr.net/npm/@recogito/[email protected]/dist/annotorious.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@recogito/geotagging-widget@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/@recogito/geotagging-widget@v0.2.1"></script>
<style>
html, body {
padding: 0;
Expand Down Expand Up @@ -57,7 +57,7 @@
});

anno.on('createAnnotation', function (annotation) {
console.log('created', annotation);
console.log('created', JSON.stringify(annotation));
});

anno.on('updateAnnotation', function(annotation, previous) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@recogito/geotagging-widget",
"version": "0.2.1",
"description": "A geo-tagging editor widget for Annotorious and RecogitoJS",
"main": "dist/geotagging-plugin.js",
"main": "dist/geotagging-widget.js",
"scripts": {
"start": "webpack serve --open --mode=development",
"build": "webpack --mode=production && rm dist/*.png && rm dist/*.html"
Expand Down

0 comments on commit 757c94a

Please sign in to comment.