{"action":"created","issue":{"url":"https://api.github.com/repos/TerriaJS/terriajs/issues/2820","repository_url":"https://api.github.com/repos/TerriaJS/terriajs","labels_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/2820/labels{/name}","comments_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/2820/comments","events_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/2820/events","html_url":"https://github.com/TerriaJS/terriajs/issues/2820","id":296965327,"number":2820,"title":"API for terriajs","user":{"login":"gordjw","id":1028531,"avatar_url":"https://avatars1.githubusercontent.com/u/1028531?v=4","gravatar_id":"","url":"https://api.github.com/users/gordjw","html_url":"https://github.com/gordjw","followers_url":"https://api.github.com/users/gordjw/followers","following_url":"https://api.github.com/users/gordjw/following{/other_user}","gists_url":"https://api.github.com/users/gordjw/gists{/gist_id}","starred_url":"https://api.github.com/users/gordjw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordjw/subscriptions","organizations_url":"https://api.github.com/users/gordjw/orgs","repos_url":"https://api.github.com/users/gordjw/repos","events_url":"https://api.github.com/users/gordjw/events{/privacy}","received_events_url":"https://api.github.com/users/gordjw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-14T03:35:50Z","updated_at":"2018-02-15T03:56:50Z","closed_at":null,"author_association":"NONE","body":"New feature request received via data.gov.au support:\r\n\r\nWe are currently using the NationalMap to visualise project data.\r\nHowever, doing so repeatedly becomes quite cumbersome.\r\n\r\nIs there a way to use the National Map via an API, e.g.\r\n- specifying the layers we need provided by NationalMap\r\n- upload our own project data\r\n- zooming to the extent of our data\r\n- exporting in provided size and format (eg. PNG)\r\n- downloading the file\r\n\r\nThis would allow for faster and increased usage of maps in our projects.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/TerriaJS/terriajs/issues/comments/365819076","html_url":"https://github.com/TerriaJS/terriajs/issues/2820#issuecomment-365819076","issue_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/2820","id":365819076,"user":{"login":"AnaBelgun","id":18452161,"avatar_url":"https://avatars3.githubusercontent.com/u/18452161?v=4","gravatar_id":"","url":"https://api.github.com/users/AnaBelgun","html_url":"https://github.com/AnaBelgun","followers_url":"https://api.github.com/users/AnaBelgun/followers","following_url":"https://api.github.com/users/AnaBelgun/following{/other_user}","gists_url":"https://api.github.com/users/AnaBelgun/gists{/gist_id}","starred_url":"https://api.github.com/users/AnaBelgun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnaBelgun/subscriptions","organizations_url":"https://api.github.com/users/AnaBelgun/orgs","repos_url":"https://api.github.com/users/AnaBelgun/repos","events_url":"https://api.github.com/users/AnaBelgun/events{/privacy}","received_events_url":"https://api.github.com/users/AnaBelgun/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T03:56:50Z","updated_at":"2018-02-15T03:56:50Z","author_association":"MEMBER","body":"From @kring \r\nYou can do lots of API-like stuff (enable particular catalog items, zoom to a particular location, etc.) by posting cross-window messages into an iframe. For more control, embed TerriaJS using a div rather than an iframe, and then you have full access to TerriaJS's javascript API.\r\nThe ability to screenshot is still limited by browser capabilities, though.  it's generally possible to get a snap of the map in 3D, and a _mostly_ correct snap in 2D. Taking snaps of legends and such tends to be harder"}}
{"actor":{"display_login":"AnaBelgun"}}