{"action":"created","issue":{"url":"https://api.github.com/repos/NICTA/nationalmap/issues/496","labels_url":"https://api.github.com/repos/NICTA/nationalmap/issues/496/labels{/name}","comments_url":"https://api.github.com/repos/NICTA/nationalmap/issues/496/comments","events_url":"https://api.github.com/repos/NICTA/nationalmap/issues/496/events","html_url":"https://github.com/NICTA/nationalmap/issues/496","id":55858962,"number":496,"title":"Add ability to filter which WFS data to display in popup","user":{"login":"meh9","id":5283003,"avatar_url":"https://avatars.githubusercontent.com/u/5283003?v=3","gravatar_id":"","url":"https://api.github.com/users/meh9","html_url":"https://github.com/meh9","followers_url":"https://api.github.com/users/meh9/followers","following_url":"https://api.github.com/users/meh9/following{/other_user}","gists_url":"https://api.github.com/users/meh9/gists{/gist_id}","starred_url":"https://api.github.com/users/meh9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meh9/subscriptions","organizations_url":"https://api.github.com/users/meh9/orgs","repos_url":"https://api.github.com/users/meh9/repos","events_url":"https://api.github.com/users/meh9/events{/privacy}","received_events_url":"https://api.github.com/users/meh9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-29T05:43:06Z","updated_at":"2015-01-29T06:05:02Z","closed_at":null,"body":"Many of the WFS layers have large numbers of key-value pairs that are not relevant to anybody but the custodian of the data, it would be great if we could filter which keys to display in the data popup.\r\n\r\nFor instance, turning on the GA Island layer and clicking on an island shows the following data:\r\n\r\n```\r\nOBJECTID\t2970\r\nFEATTYPE\tIsland\r\nNAME\tHINCHINBROOK ISLAND\r\nSTATE\tQLD\r\nFEATREL\t2001-11-28T13:00:00Z\r\nATTRREL\t2001-11-28T13:00:00Z\r\nPLANACC\t9999\r\nSOURCE\tGEOSCIENCE AUSTRALIA\r\nCREATED\t2006-05-08T14:00:00Z\r\nRETIRED\t\r\nPID\t3491633\r\nSYMBOL\t0\r\nSHAPE_Leng\t1.32347920603\r\nSHAPE_Area\t0.0338646391\r\n```\r\n\r\nIn this case probably the only keys we are really interested in displaying to an end user might be FEATTYPE, NAME, and STATE. If we do not display all the keys maybe we should have a [...] symbol that could display them all when clicked.\r\n\r\nWe could control it something like this in the init_nm.json:\r\n\r\n````\r\n{\r\n    \"name\": \"Islands\",\r\n    ...\r\n    \"url\": \"http://geoserver-nm.nicta.com.au/geotopo_250k/ows\",\r\n    \"layers\": \"Framework:islands\",\r\n    \"displayKeys\": \"FEATTYPE,NAME,STATE\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/NICTA/nationalmap/issues/comments/71973620","html_url":"https://github.com/NICTA/nationalmap/issues/496#issuecomment-71973620","issue_url":"https://api.github.com/repos/NICTA/nationalmap/issues/496","id":71973620,"user":{"login":"kring","id":924374,"avatar_url":"https://avatars.githubusercontent.com/u/924374?v=3","gravatar_id":"","url":"https://api.github.com/users/kring","html_url":"https://github.com/kring","followers_url":"https://api.github.com/users/kring/followers","following_url":"https://api.github.com/users/kring/following{/other_user}","gists_url":"https://api.github.com/users/kring/gists{/gist_id}","starred_url":"https://api.github.com/users/kring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kring/subscriptions","organizations_url":"https://api.github.com/users/kring/orgs","repos_url":"https://api.github.com/users/kring/repos","events_url":"https://api.github.com/users/kring/events{/privacy}","received_events_url":"https://api.github.com/users/kring/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T06:05:02Z","updated_at":"2015-01-29T06:05:02Z","body":"CC #348 \r\n\r\nEven nicer than the list of display keys: we could provide an HTML template to display in the feature popup with something like {FEATTYPE} for feature fields."}}