Skip to content

Commit 9702540

Browse files
committed
added viewer urls
1 parent 199b9fa commit 9702540

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

generate-index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,15 @@ const listItems = entries
8080
<strong>${entry.annotationsId}</strong> (width: ${entry.spriteWidth}px)
8181
<br>
8282
Original: <a href="${entry.annotationUrl}">${entry.annotationUrl}</a>
83+
<a href="https://viewer.allmaps.org/?url=${encodeURIComponent(
84+
entry.annotationUrl
85+
)}">Open original annotation in Allmaps Viewer</a>
8386
<br>
8487
<a href="${spriteUrl}">Sprite Image</a> |
85-
<a href="${annotationUrl}">Sprite Georeference Annotation</a>
88+
<a href="${annotationUrl}">Sprite Georeference Annotation</a> |
89+
<a href="https://viewer.allmaps.org/?url=${encodeURIComponent(
90+
annotationUrl
91+
)}">Open sprite annotation in Allmaps Viewer</a>
8692
</li>`
8793
})
8894
.join('\n')

output/index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,21 @@ <h1>Example thumbnail sprites</h1>
3737
<strong>0046a8c125f4a87b</strong> (width: 128px)
3838
<br>
3939
Original: <a href="0046a8c125f4a87b/annotations.json">0046a8c125f4a87b/annotations.json</a>
40+
<a href="https://viewer.allmaps.org/?url=0046a8c125f4a87b%2Fannotations.json">Open original annotation in Allmaps Viewer</a>
4041
<br>
4142
<a href="./0046a8c125f4a87b/128/thumbnail-sprites.jpg">Sprite Image</a> |
42-
<a href="./0046a8c125f4a87b/128/thumbnail-sprites-annotation.json">Sprite Georeference Annotation</a>
43+
<a href="./0046a8c125f4a87b/128/thumbnail-sprites-annotation.json">Sprite Georeference Annotation</a> |
44+
<a href="https://viewer.allmaps.org/?url=.%2F0046a8c125f4a87b%2F128%2Fthumbnail-sprites-annotation.json">Open sprite annotation in Allmaps Viewer</a>
4345
</li>
4446
<li>
4547
<strong>0046a8c125f4a87b</strong> (width: 256px)
4648
<br>
4749
Original: <a href="0046a8c125f4a87b/annotations.json">0046a8c125f4a87b/annotations.json</a>
50+
<a href="https://viewer.allmaps.org/?url=0046a8c125f4a87b%2Fannotations.json">Open original annotation in Allmaps Viewer</a>
4851
<br>
4952
<a href="./0046a8c125f4a87b/256/thumbnail-sprites.jpg">Sprite Image</a> |
50-
<a href="./0046a8c125f4a87b/256/thumbnail-sprites-annotation.json">Sprite Georeference Annotation</a>
53+
<a href="./0046a8c125f4a87b/256/thumbnail-sprites-annotation.json">Sprite Georeference Annotation</a> |
54+
<a href="https://viewer.allmaps.org/?url=.%2F0046a8c125f4a87b%2F256%2Fthumbnail-sprites-annotation.json">Open sprite annotation in Allmaps Viewer</a>
5155
</li>
5256
</ul>
5357
</body>

0 commit comments

Comments
 (0)