Current Mirador version: v2.1.2-umd-1.0.
To prevent cross-origin requests, please clone this repo to a local web server and run via HTTP.
A simple local web server: https://www.browsersync.io/.
If using browsersync, run browser-sync start --server
and visit: http://localhost:3000/mirador.html.
-
http://localhost:3000/mirador.html
(default)@define {string} iiifURLPrefix
= ''@define {string} manifestPcdmID
= ''@define {string} manifestURI
= '/demo/manifest.json'
-
@define {string} iiifURLPrefix
= 'http://iiif-sandbox.lib.umd.edu/manifests/'@define {string} manifestPcdmID
= 'sn83045081/1902-01-15/issue.json'@define {string} manifestURI
= 'http://iiif-sandbox.lib.umd.edu/manifests/sn83045081/1902-01-15/issue.json'
-
http://localhost:3000/mirador.html?manifest=http://taixiaoyu.com/mirador-static/manifest.json
@define {string} iiifURLPrefix
= 'http://taixiaoyu.com/mirador-static/'@define {string} manifestPcdmID
= 'manifest.json'@define {string} manifestURI
= 'http://taixiaoyu.com/mirador-static/manifest.json'
annotationTypeStyles
now supports customizable annotation styles, hovering styles, and ability to show or hide annotation tooltips.
Annotation with @type: umd:Hits
, umd:Article
, umd:ArticleSelected
, umd:Line
will have different appearance according to the seetings of 'annotationTypeStyles'
in site.js
:
'annotationTypeStyles': {
'umd:Article': {
'strokeColor': 'rgba(255, 255, 255, 0)',
'fillColor': 'green',
'fillColorAlpha': 0.08,
'hoverColor': 'rgba(255, 255, 255, 0.2)',
'hoverFillColor': 'green',
'hoverFillColorAlpha': 0.4,
'hideTooltip': true
},
...
}
An example oa:annotation:
{
"@id": "P1_TL00160",
"@type": [
"oa:Annotation",
"umd:Hits"
],
"resource": [
{
"@type": "cnt:ContentAsText",
"format": "text/plain",
"chars": "College Park"
}
],
"on": {
"@type": "oa:SpecificResource",
"selector": {
"@type": "oa:FragmentSelector",
"value": "xywh=1536,5408,260,33"
},
"full": "0002.xml"
},
"motivation": "sc:painting"
},
See the LICENSE file for license rights and limitations (Apache 2.0).