{"action":"created","issue":{"url":"https://api.github.com/repos/mpetroff/pannellum/issues/121","repository_url":"https://api.github.com/repos/mpetroff/pannellum","labels_url":"https://api.github.com/repos/mpetroff/pannellum/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/mpetroff/pannellum/issues/121/comments","events_url":"https://api.github.com/repos/mpetroff/pannellum/issues/121/events","html_url":"https://github.com/mpetroff/pannellum/issues/121","id":139828787,"number":121,"title":"Possible to add navigation button to move images?","user":{"login":"video-internal","id":15686457,"avatar_url":"https://avatars.githubusercontent.com/u/15686457?v=3","gravatar_id":"","url":"https://api.github.com/users/video-internal","html_url":"https://github.com/video-internal","followers_url":"https://api.github.com/users/video-internal/followers","following_url":"https://api.github.com/users/video-internal/following{/other_user}","gists_url":"https://api.github.com/users/video-internal/gists{/gist_id}","starred_url":"https://api.github.com/users/video-internal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/video-internal/subscriptions","organizations_url":"https://api.github.com/users/video-internal/orgs","repos_url":"https://api.github.com/users/video-internal/repos","events_url":"https://api.github.com/users/video-internal/events{/privacy}","received_events_url":"https://api.github.com/users/video-internal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-03-10T09:10:36Z","updated_at":"2016-06-21T15:32:23Z","closed_at":"2016-03-12T20:37:17Z","body":"I have seen examples but I was just wondering in place of mouse to move the image in directions, is it ok to use buttons to do the same? kind of navigational buttons ? -> , <- "},"comment":{"url":"https://api.github.com/repos/mpetroff/pannellum/issues/comments/227478259","html_url":"https://github.com/mpetroff/pannellum/issues/121#issuecomment-227478259","issue_url":"https://api.github.com/repos/mpetroff/pannellum/issues/121","id":227478259,"user":{"login":"mpetroff","id":1450212,"avatar_url":"https://avatars.githubusercontent.com/u/1450212?v=3","gravatar_id":"","url":"https://api.github.com/users/mpetroff","html_url":"https://github.com/mpetroff","followers_url":"https://api.github.com/users/mpetroff/followers","following_url":"https://api.github.com/users/mpetroff/following{/other_user}","gists_url":"https://api.github.com/users/mpetroff/gists{/gist_id}","starred_url":"https://api.github.com/users/mpetroff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpetroff/subscriptions","organizations_url":"https://api.github.com/users/mpetroff/orgs","repos_url":"https://api.github.com/users/mpetroff/repos","events_url":"https://api.github.com/users/mpetroff/events{/privacy}","received_events_url":"https://api.github.com/users/mpetroff/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T15:32:23Z","updated_at":"2016-06-21T15:32:23Z","body":"The problem arises from how you create the final object and that you use and array (`inv_sceneTempData = [];`):\r\n```javascript\r\ninv_sceneTempData.push({\r\n  inv_tempScene : {\r\n    \"type\": $(this).attr('imgType'),\r\n    \"panorama\":$(this).attr('imgPath'),\r\n    \"hotSpots\":inv_hotSpotData\r\n  }    \r\n});\r\n```\r\n\r\nFirst, `inv_sceneTempData` should be an object:\r\n```javascript\r\ninv_sceneTempData = {};\r\n```\r\n\r\nSince you're using JavaScript object literal notation, `inv_tempScene` is interpreted as a string, not a variable. You need to use array notation:\r\n```javascript\r\ninv_sceneTempData[inv_tempScene] = {\r\n  \"type\": $(this).attr('imgType'),\r\n  \"panorama\":$(this).attr('imgPath'),\r\n  \"hotSpots\":inv_hotSpotData\r\n}\r\n```"}}
{"actor":{"display_login":"mpetroff"}}