Skip to content

Commit

Permalink
Enable basic image rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
egardner committed Oct 7, 2015
1 parent a318da0 commit 8702166
Show file tree
Hide file tree
Showing 243 changed files with 1,077 additions and 7 deletions.
1 change: 1 addition & 0 deletions data/img_index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@
pixel_width: 5120
pixel_height: 7424
- cat: 33
rotation: true
layers:
- name: Back
path: terracottas/33/back
Expand Down
4 changes: 4 additions & 0 deletions helpers/catalogue_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def object_data(id)
}
end

def has_rotation?(id)
data.img_index.find { |item| item[:cat] == id }.rotation || false
end

def next_entry(id = 0)
range = 1..59
return false unless range.include?(id)
Expand Down
Binary file added source/assets/images/360/33/1.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/10.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/100.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/101.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/102.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/103.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/104.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/105.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/106.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/107.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/108.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/109.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/11.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/110.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/111.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/112.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/113.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/114.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/115.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/116.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/117.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/118.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/119.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/12.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/120.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/360/33/121.JPG
Binary file added source/assets/images/360/33/122.JPG
Binary file added source/assets/images/360/33/123.JPG
Binary file added source/assets/images/360/33/124.JPG
Binary file added source/assets/images/360/33/125.JPG
Binary file added source/assets/images/360/33/126.JPG
Binary file added source/assets/images/360/33/127.JPG
Binary file added source/assets/images/360/33/128.JPG
Binary file added source/assets/images/360/33/129.JPG
Binary file added source/assets/images/360/33/13.JPG
Binary file added source/assets/images/360/33/130.JPG
Binary file added source/assets/images/360/33/131.JPG
Binary file added source/assets/images/360/33/132.JPG
Binary file added source/assets/images/360/33/133.JPG
Binary file added source/assets/images/360/33/134.JPG
Binary file added source/assets/images/360/33/135.JPG
Binary file added source/assets/images/360/33/136.JPG
Binary file added source/assets/images/360/33/137.JPG
Binary file added source/assets/images/360/33/138.JPG
Binary file added source/assets/images/360/33/139.JPG
Binary file added source/assets/images/360/33/14.JPG
Binary file added source/assets/images/360/33/140.JPG
Binary file added source/assets/images/360/33/141.JPG
Binary file added source/assets/images/360/33/142.JPG
Binary file added source/assets/images/360/33/143.JPG
Binary file added source/assets/images/360/33/144.JPG
Binary file added source/assets/images/360/33/145.JPG
Binary file added source/assets/images/360/33/146.JPG
Binary file added source/assets/images/360/33/147.JPG
Binary file added source/assets/images/360/33/148.JPG
Binary file added source/assets/images/360/33/149.JPG
Binary file added source/assets/images/360/33/15.JPG
Binary file added source/assets/images/360/33/150.JPG
Binary file added source/assets/images/360/33/151.JPG
Binary file added source/assets/images/360/33/152.JPG
Binary file added source/assets/images/360/33/153.JPG
Binary file added source/assets/images/360/33/154.JPG
Binary file added source/assets/images/360/33/155.JPG
Binary file added source/assets/images/360/33/156.JPG
Binary file added source/assets/images/360/33/157.JPG
Binary file added source/assets/images/360/33/158.JPG
Binary file added source/assets/images/360/33/159.JPG
Binary file added source/assets/images/360/33/16.JPG
Binary file added source/assets/images/360/33/160.JPG
Binary file added source/assets/images/360/33/161.JPG
Binary file added source/assets/images/360/33/162.JPG
Binary file added source/assets/images/360/33/163.JPG
Binary file added source/assets/images/360/33/164.JPG
Binary file added source/assets/images/360/33/165.JPG
Binary file added source/assets/images/360/33/166.JPG
Binary file added source/assets/images/360/33/167.JPG
Binary file added source/assets/images/360/33/168.JPG
Binary file added source/assets/images/360/33/169.JPG
Binary file added source/assets/images/360/33/17.JPG
Binary file added source/assets/images/360/33/170.JPG
Binary file added source/assets/images/360/33/171.JPG
Binary file added source/assets/images/360/33/172.JPG
Binary file added source/assets/images/360/33/173.JPG
Binary file added source/assets/images/360/33/174.JPG
Binary file added source/assets/images/360/33/175.JPG
Binary file added source/assets/images/360/33/176.JPG
Binary file added source/assets/images/360/33/177.JPG
Binary file added source/assets/images/360/33/178.JPG
Binary file added source/assets/images/360/33/179.JPG
Binary file added source/assets/images/360/33/18.JPG
Binary file added source/assets/images/360/33/180.JPG
Binary file added source/assets/images/360/33/19.JPG
Binary file added source/assets/images/360/33/2.JPG
Binary file added source/assets/images/360/33/20.JPG
Binary file added source/assets/images/360/33/21.JPG
Binary file added source/assets/images/360/33/22.JPG
Binary file added source/assets/images/360/33/23.JPG
Binary file added source/assets/images/360/33/24.JPG
Binary file added source/assets/images/360/33/25.JPG
Binary file added source/assets/images/360/33/26.JPG
Binary file added source/assets/images/360/33/27.JPG
Binary file added source/assets/images/360/33/28.JPG
Binary file added source/assets/images/360/33/29.JPG
Binary file added source/assets/images/360/33/3.JPG
Binary file added source/assets/images/360/33/30.JPG
Binary file added source/assets/images/360/33/31.JPG
Binary file added source/assets/images/360/33/32.JPG
Binary file added source/assets/images/360/33/33.JPG
Binary file added source/assets/images/360/33/34.JPG
Binary file added source/assets/images/360/33/35.JPG
Binary file added source/assets/images/360/33/36.JPG
Binary file added source/assets/images/360/33/37.JPG
Binary file added source/assets/images/360/33/38.JPG
Binary file added source/assets/images/360/33/39.JPG
Binary file added source/assets/images/360/33/4.JPG
Binary file added source/assets/images/360/33/40.JPG
Binary file added source/assets/images/360/33/41.JPG
Binary file added source/assets/images/360/33/42.JPG
Binary file added source/assets/images/360/33/43.JPG
Binary file added source/assets/images/360/33/44.JPG
Binary file added source/assets/images/360/33/45.JPG
Binary file added source/assets/images/360/33/46.JPG
Binary file added source/assets/images/360/33/47.JPG
Binary file added source/assets/images/360/33/48.JPG
Binary file added source/assets/images/360/33/49.JPG
Binary file added source/assets/images/360/33/5.JPG
Binary file added source/assets/images/360/33/50.JPG
Binary file added source/assets/images/360/33/51.JPG
Binary file added source/assets/images/360/33/52.JPG
Binary file added source/assets/images/360/33/53.JPG
Binary file added source/assets/images/360/33/54.JPG
Binary file added source/assets/images/360/33/55.JPG
Binary file added source/assets/images/360/33/56.JPG
Binary file added source/assets/images/360/33/57.JPG
Binary file added source/assets/images/360/33/58.JPG
Binary file added source/assets/images/360/33/59.JPG
Binary file added source/assets/images/360/33/6.JPG
Binary file added source/assets/images/360/33/60.JPG
Binary file added source/assets/images/360/33/61.JPG
Binary file added source/assets/images/360/33/62.JPG
Binary file added source/assets/images/360/33/63.JPG
Binary file added source/assets/images/360/33/64.JPG
Binary file added source/assets/images/360/33/65.JPG
Binary file added source/assets/images/360/33/66.JPG
Binary file added source/assets/images/360/33/67.JPG
Binary file added source/assets/images/360/33/68.JPG
Binary file added source/assets/images/360/33/69.JPG
Binary file added source/assets/images/360/33/7.JPG
Binary file added source/assets/images/360/33/70.JPG
Binary file added source/assets/images/360/33/71.JPG
Binary file added source/assets/images/360/33/72.JPG
Binary file added source/assets/images/360/33/73.JPG
Binary file added source/assets/images/360/33/74.JPG
Binary file added source/assets/images/360/33/75.JPG
Binary file added source/assets/images/360/33/76.JPG
Binary file added source/assets/images/360/33/77.JPG
Binary file added source/assets/images/360/33/78.JPG
Binary file added source/assets/images/360/33/79.JPG
Binary file added source/assets/images/360/33/8.JPG
Binary file added source/assets/images/360/33/80.JPG
Binary file added source/assets/images/360/33/81.JPG
Binary file added source/assets/images/360/33/82.JPG
Binary file added source/assets/images/360/33/83.JPG
Binary file added source/assets/images/360/33/84.JPG
Binary file added source/assets/images/360/33/85.JPG
Binary file added source/assets/images/360/33/86.JPG
Binary file added source/assets/images/360/33/87.JPG
Binary file added source/assets/images/360/33/88.JPG
Binary file added source/assets/images/360/33/89.JPG
Binary file added source/assets/images/360/33/9.JPG
Binary file added source/assets/images/360/33/90.JPG
Binary file added source/assets/images/360/33/91.JPG
Binary file added source/assets/images/360/33/92.JPG
Binary file added source/assets/images/360/33/93.JPG
Binary file added source/assets/images/360/33/94.JPG
Binary file added source/assets/images/360/33/95.JPG
Binary file added source/assets/images/360/33/96.JPG
Binary file added source/assets/images/360/33/97.JPG
Binary file added source/assets/images/360/33/98.JPG
Binary file added source/assets/images/360/33/99.JPG
Binary file added source/assets/images/360/test/1.png
Binary file added source/assets/images/360/test/10.png
Binary file added source/assets/images/360/test/11.png
Binary file added source/assets/images/360/test/12.png
Binary file added source/assets/images/360/test/13.png
Binary file added source/assets/images/360/test/14.png
Binary file added source/assets/images/360/test/15.png
Binary file added source/assets/images/360/test/16.png
Binary file added source/assets/images/360/test/17.png
Binary file added source/assets/images/360/test/18.png
Binary file added source/assets/images/360/test/19.png
Binary file added source/assets/images/360/test/2.png
Binary file added source/assets/images/360/test/20.png
Binary file added source/assets/images/360/test/21.png
Binary file added source/assets/images/360/test/22.png
Binary file added source/assets/images/360/test/23.png
Binary file added source/assets/images/360/test/24.png
Binary file added source/assets/images/360/test/25.png
Binary file added source/assets/images/360/test/26.png
Binary file added source/assets/images/360/test/27.png
Binary file added source/assets/images/360/test/28.png
Binary file added source/assets/images/360/test/29.png
Binary file added source/assets/images/360/test/3.png
Binary file added source/assets/images/360/test/30.png
Binary file added source/assets/images/360/test/31.png
Binary file added source/assets/images/360/test/32.png
Binary file added source/assets/images/360/test/33.png
Binary file added source/assets/images/360/test/34.png
Binary file added source/assets/images/360/test/35.png
Binary file added source/assets/images/360/test/36.png
Binary file added source/assets/images/360/test/37.png
Binary file added source/assets/images/360/test/38.png
Binary file added source/assets/images/360/test/39.png
Binary file added source/assets/images/360/test/4.png
Binary file added source/assets/images/360/test/40.png
Binary file added source/assets/images/360/test/41.png
Binary file added source/assets/images/360/test/42.png
Binary file added source/assets/images/360/test/43.png
Binary file added source/assets/images/360/test/44.png
Binary file added source/assets/images/360/test/45.png
Binary file added source/assets/images/360/test/46.png
Binary file added source/assets/images/360/test/47.png
Binary file added source/assets/images/360/test/48.png
Binary file added source/assets/images/360/test/49.png
Binary file added source/assets/images/360/test/5.png
Binary file added source/assets/images/360/test/50.png
Binary file added source/assets/images/360/test/51.png
Binary file added source/assets/images/360/test/52.png
Binary file added source/assets/images/360/test/6.png
Binary file added source/assets/images/360/test/7.png
Binary file added source/assets/images/360/test/8.png
Binary file added source/assets/images/360/test/9.png
1 change: 1 addition & 0 deletions source/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//= require lib/underscore-min
//= require lib/lunr.min
//= require lib/leaflet
//= require lib/threesixty
//= require ui-functions
//= require map-functions
//= require search-functions
Expand Down
Loading

0 comments on commit 8702166

Please sign in to comment.