-
Notifications
You must be signed in to change notification settings - Fork 10
componentGallery
Sebastian Schlicht edited this page Nov 5, 2013
·
6 revisions
This view displays all images the gallery contains having the same height fitting the window width.
readGalleryData(galleryIdentifier, height): gallery meta data including meta data for all preview images
{
"gallery": {
"name": "",
"timestamp": "",
"size": ""
},
"images": [
{
"title": "",
"previewUrl": "",
"width": "",
"imageUrl": "",
"numComments": "",
"uploader": {
"name": "",
"url": "",
"imageUrl": ""
}
},
...
]
}
This view displays a single image having one of a couple of defined sizes matching the window size best.
- readScaledImage (imageIdentifier): binary image and the image meta data
- readCommentsForEntity (imageIdentifier, numComments): load any number of comments for the image displayed
{
"image": {
"identifier": "",
"title": "",
"description": "",
"uploader": {
"name": "",
"url": "",
"imageUrl": ""
},
"timestamp": "",
"author": "",
"licence": "",
"size": {
"width": "",
"height": ""
},
"requests": "",
"filesize": "",
"geodata": {
"longitude": "",
"latitude": ""
},
"imageIndex": "",
"gallerySize": "",
"previousImageUrl": "",
"nextImageUrl": "",
"basisUrl": ""
}
}