{"action":"created","issue":{"url":"https://api.github.com/repos/joker-x/Leaflet.geoCSV/issues/13","labels_url":"https://api.github.com/repos/joker-x/Leaflet.geoCSV/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/joker-x/Leaflet.geoCSV/issues/13/comments","events_url":"https://api.github.com/repos/joker-x/Leaflet.geoCSV/issues/13/events","html_url":"https://github.com/joker-x/Leaflet.geoCSV/issues/13","id":120129697,"number":13,"title":"Customise Popup","user":{"login":"joshdickerson92","id":8803534,"avatar_url":"https://avatars.githubusercontent.com/u/8803534?v=3","gravatar_id":"","url":"https://api.github.com/users/joshdickerson92","html_url":"https://github.com/joshdickerson92","followers_url":"https://api.github.com/users/joshdickerson92/followers","following_url":"https://api.github.com/users/joshdickerson92/following{/other_user}","gists_url":"https://api.github.com/users/joshdickerson92/gists{/gist_id}","starred_url":"https://api.github.com/users/joshdickerson92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshdickerson92/subscriptions","organizations_url":"https://api.github.com/users/joshdickerson92/orgs","repos_url":"https://api.github.com/users/joshdickerson92/repos","events_url":"https://api.github.com/users/joshdickerson92/events{/privacy}","received_events_url":"https://api.github.com/users/joshdickerson92/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-03T09:45:24Z","updated_at":"2015-12-03T12:17:08Z","closed_at":"2015-12-03T11:22:11Z","body":"I am struggling to be able to customise the popup to only show certain attributes of the CSV and different titles. Using the [Bankias Example](http://joker-x.github.io/Leaflet.geoCSV/example/bankia/index.html) the popup currently uses the script below to pull through all of the attributes using the titles within the CSV.\r\n\r\n``` javascript\r\nvar popup = '';\r\n\t\tfor (var clave in feature.properties) {\r\n\t\t\tvar title = bankias.getPropertyTitle(clave);\r\n\t\t\tpopup += '<b>'+title+'</b><br />'+feature.properties[clave]+'<br /><br />';\r\n\t\t}\r\n\t\tlayer.bindPopup(popup);\r\n```\r\n\r\nThe issue I have is that I cannot change the titles within the CSV as they are exported from a database so I therefore need to manually change them in the script above.\r\n\r\n Using the Bankias example would it be possible to only show the \"Localidad\" and \"Provincia\" attributes and change the titles to \"locality\" and \"province\" without having to change them in the CSV? "},"comment":{"url":"https://api.github.com/repos/joker-x/Leaflet.geoCSV/issues/comments/161618056","html_url":"https://github.com/joker-x/Leaflet.geoCSV/issues/13#issuecomment-161618056","issue_url":"https://api.github.com/repos/joker-x/Leaflet.geoCSV/issues/13","id":161618056,"user":{"login":"joshdickerson92","id":8803534,"avatar_url":"https://avatars.githubusercontent.com/u/8803534?v=3","gravatar_id":"","url":"https://api.github.com/users/joshdickerson92","html_url":"https://github.com/joshdickerson92","followers_url":"https://api.github.com/users/joshdickerson92/followers","following_url":"https://api.github.com/users/joshdickerson92/following{/other_user}","gists_url":"https://api.github.com/users/joshdickerson92/gists{/gist_id}","starred_url":"https://api.github.com/users/joshdickerson92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshdickerson92/subscriptions","organizations_url":"https://api.github.com/users/joshdickerson92/orgs","repos_url":"https://api.github.com/users/joshdickerson92/repos","events_url":"https://api.github.com/users/joshdickerson92/events{/privacy}","received_events_url":"https://api.github.com/users/joshdickerson92/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T12:17:08Z","updated_at":"2015-12-03T12:17:08Z","body":"@joker-x Are you aware of a way of the popup showing the attributes of multiple points should they be located in exactly the same place?"}}