Rename IIIFInfo format methods for more clarity

This commit is contained in:
Lutz Helm
2019-04-10 09:24:07 +02:00
committed by Lutz Helm
parent 3895a59c5e
commit 0cffee6f83
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ const layer = new TileLayer(),
function refreshMap(imageInfoUrl) {
fetch(imageInfoUrl).then(function(response) {
response.json().then(function(imageInfo) {
const options = new IIIFInfo().readFromJson(imageInfo);
const options = new IIIFInfo().readOptionsFromJson(imageInfo);
if (options === undefined || options.version === undefined) {
notifyDiv.textContent = 'Data seems to be no valid IIIF image information.';
return;