{"action":"created","issue":{"url":"https://api.github.com/repos/geoadmin/mf-geoadmin3/issues/2948","repository_url":"https://api.github.com/repos/geoadmin/mf-geoadmin3","labels_url":"https://api.github.com/repos/geoadmin/mf-geoadmin3/issues/2948/labels{/name}","comments_url":"https://api.github.com/repos/geoadmin/mf-geoadmin3/issues/2948/comments","events_url":"https://api.github.com/repos/geoadmin/mf-geoadmin3/issues/2948/events","html_url":"https://github.com/geoadmin/mf-geoadmin3/issues/2948","id":119459322,"number":2948,"title":"Print  report link for  ch.kantone.cadastralwebmap-farbe","user":{"login":"davidoesch","id":4577727,"avatar_url":"https://avatars.githubusercontent.com/u/4577727?v=3","gravatar_id":"","url":"https://api.github.com/users/davidoesch","html_url":"https://github.com/davidoesch","followers_url":"https://api.github.com/users/davidoesch/followers","following_url":"https://api.github.com/users/davidoesch/following{/other_user}","gists_url":"https://api.github.com/users/davidoesch/gists{/gist_id}","starred_url":"https://api.github.com/users/davidoesch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidoesch/subscriptions","organizations_url":"https://api.github.com/users/davidoesch/orgs","repos_url":"https://api.github.com/users/davidoesch/repos","events_url":"https://api.github.com/users/davidoesch/events{/privacy}","received_events_url":"https://api.github.com/users/davidoesch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geoadmin/mf-geoadmin3/labels/2nd%20prio","name":"2nd prio","color":"eb6420"},{"url":"https://api.github.com/repos/geoadmin/mf-geoadmin3/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"pfanguin","id":6862714,"avatar_url":"https://avatars.githubusercontent.com/u/6862714?v=3","gravatar_id":"","url":"https://api.github.com/users/pfanguin","html_url":"https://github.com/pfanguin","followers_url":"https://api.github.com/users/pfanguin/followers","following_url":"https://api.github.com/users/pfanguin/following{/other_user}","gists_url":"https://api.github.com/users/pfanguin/gists{/gist_id}","starred_url":"https://api.github.com/users/pfanguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfanguin/subscriptions","organizations_url":"https://api.github.com/users/pfanguin/orgs","repos_url":"https://api.github.com/users/pfanguin/repos","events_url":"https://api.github.com/users/pfanguin/events{/privacy}","received_events_url":"https://api.github.com/users/pfanguin/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/geoadmin/mf-geoadmin3/milestones/7","html_url":"https://github.com/geoadmin/mf-geoadmin3/milestones/Q4.2015","labels_url":"https://api.github.com/repos/geoadmin/mf-geoadmin3/milestones/7/labels","id":1000536,"number":7,"title":"Q4.2015","description":"","creator":{"login":"gjn","id":2572317,"avatar_url":"https://avatars.githubusercontent.com/u/2572317?v=3","gravatar_id":"","url":"https://api.github.com/users/gjn","html_url":"https://github.com/gjn","followers_url":"https://api.github.com/users/gjn/followers","following_url":"https://api.github.com/users/gjn/following{/other_user}","gists_url":"https://api.github.com/users/gjn/gists{/gist_id}","starred_url":"https://api.github.com/users/gjn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjn/subscriptions","organizations_url":"https://api.github.com/users/gjn/orgs","repos_url":"https://api.github.com/users/gjn/repos","events_url":"https://api.github.com/users/gjn/events{/privacy}","received_events_url":"https://api.github.com/users/gjn/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2015-03-01T10:28:06Z","updated_at":"2016-03-15T14:09:53Z","due_on":"2015-12-30T23:00:00Z","closed_at":null},"comments":13,"created_at":"2015-11-30T10:05:49Z","updated_at":"2016-04-01T10:05:26Z","closed_at":null,"body":"For ch.kantone.cadastralwebmap-farbe ( ad  alter for a pure AV layer to be intgerated)\r\nrealize in the tooltip a link to a PDF\r\n\r\n![unbenannt](https://cloud.githubusercontent.com/assets/4577727/11468735/25e1498e-9752-11e5-891f-8a6efd929db5.PNG)\r\n\r\n\r\nThe link to PDF is called\r\nwith the following paramteres\r\nURL: https://geodata01.admin.ch/order/product.igs?product=av_pdf&pos=<Ost>/<Nord>\r\nResulat:\r\nURL auf Resultatdatei\r\n\r\n\r\nMit der oben angegebenen URL kann ein PDF Plan A4 vom GeoShop\r\nbezogen werden. User und Password müssen mit HTTP Basic Authentication\r\nübergeben werden. Der GeoShop berechnet automatisch die betroffene\r\nParzelle und die optimale Skalierung für den Plan. Die Koordinate \r\n<Ost>/<Nord> muss im Koordinatensystem LV03 angegeben werden. \r\n\r\nAls Resultat des Aufrufs wird die URL des Resultatdatei zurück gegeben.\r\nDie Resultatdatei ist erst ein paar Minuten nach Aufruf verfügbar. D.h.\r\ndie aufrufende Applikation muss bei der Abfrage den HTTP Status \r\nauf \"200 OK\" prüfen.\r\n\r\nCreate an expert tootlip based on the link above with a countdown set to 10 minutes. \r\n\r\n![unbenannt1](https://cloud.githubusercontent.com/assets/4577727/11480602/902b087a-9798-11e5-83d0-8f5796b2a4d5.PNG)\r\n\r\n\r\nEvery minute do a poll to see if file exist, if file existthen change the countdown to the download link\r\n\r\n![unbenannt](https://cloud.githubusercontent.com/assets/4577727/11480610/98669888-9798-11e5-9b66-6e02d7ddb201.PNG)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/geoadmin/mf-geoadmin3/issues/comments/204337130","html_url":"https://github.com/geoadmin/mf-geoadmin3/issues/2948#issuecomment-204337130","issue_url":"https://api.github.com/repos/geoadmin/mf-geoadmin3/issues/2948","id":204337130,"user":{"login":"procrastinatio","id":1236739,"avatar_url":"https://avatars.githubusercontent.com/u/1236739?v=3","gravatar_id":"","url":"https://api.github.com/users/procrastinatio","html_url":"https://github.com/procrastinatio","followers_url":"https://api.github.com/users/procrastinatio/followers","following_url":"https://api.github.com/users/procrastinatio/following{/other_user}","gists_url":"https://api.github.com/users/procrastinatio/gists{/gist_id}","starred_url":"https://api.github.com/users/procrastinatio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/procrastinatio/subscriptions","organizations_url":"https://api.github.com/users/procrastinatio/orgs","repos_url":"https://api.github.com/users/procrastinatio/repos","events_url":"https://api.github.com/users/procrastinatio/events{/privacy}","received_events_url":"https://api.github.com/users/procrastinatio/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T10:05:26Z","updated_at":"2016-04-01T10:05:26Z","body":"@gjn What is the point of polling for a few millisecond  before rendering the mako ?\r\n- If it is < 1000ms, it is useless because the user needs already more than 1 sec to find and  click on the PDF link\r\n- If it is > 1000ms the tooltip is not very reactive, the user will keep clicking on the feature\r\nAnd if the mako is rendered at the timeout, the user only get \"Your PDF **may** be **not** ready\"\r\n\r\nThe only viable alternative, is to have an extended tooltip acting as a proxy for the download, with full JS spinner, etc. This service send back the PDF when ready or displays a spinner as long as it is not. But this is really to overcome the userfriendlyness shortcomings of the original service, which is really not the goal of mf-chsdi3.\r\n"}}