{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/leaflet/issues/218","labels_url":"https://api.github.com/repos/rstudio/leaflet/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/leaflet/issues/218/comments","events_url":"https://api.github.com/repos/rstudio/leaflet/issues/218/events","html_url":"https://github.com/rstudio/leaflet/issues/218","id":121357334,"number":218,"title":"Feature Request: Add text (e.g. static labels) to map","user":{"login":"tiernanmartin","id":8197328,"avatar_url":"https://avatars.githubusercontent.com/u/8197328?v=3","gravatar_id":"","url":"https://api.github.com/users/tiernanmartin","html_url":"https://github.com/tiernanmartin","followers_url":"https://api.github.com/users/tiernanmartin/followers","following_url":"https://api.github.com/users/tiernanmartin/following{/other_user}","gists_url":"https://api.github.com/users/tiernanmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/tiernanmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiernanmartin/subscriptions","organizations_url":"https://api.github.com/users/tiernanmartin/orgs","repos_url":"https://api.github.com/users/tiernanmartin/repos","events_url":"https://api.github.com/users/tiernanmartin/events{/privacy}","received_events_url":"https://api.github.com/users/tiernanmartin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-09T22:38:13Z","updated_at":"2015-12-16T18:42:52Z","closed_at":null,"body":"This request stems from another `leaflet` package user's  [question posted on Stackoverflow.](http://stackoverflow.com/questions/31745525/leaflet-with-r-add-text-labels)\r\n\r\nI'd like to add static text labels to a leaflet map that I built and deployed with `shiny`. \r\n\r\nYou can check it out here: [https://maynardandking.shinyapps.io/Census-Data-and-Leaflet-Map](https://maynardandking.shinyapps.io/Census-Data-and-Leaflet-Map)\r\n\r\nAnd the code is available here: [https://github.com/tiernanmartin/Census-Data-and-Leaflet-Map/blob/master/app.R](https://github.com/tiernanmartin/Census-Data-and-Leaflet-Map/blob/master/app.R)\r\n\r\nAs you can see, I'm currently using the `leaflet` package's popup objects to label the counties. It sorta works, but I don't really like that there's a caption box around the text – it's eye-catching and it distracts the viewer from the main point of this choropleth: the color of the census tracts.\r\n\r\nI also am not too happy with the way that the basemap's labels are blocked by the polygon layers. I know I could address this by adjusting the opacity of the polygon layer, but I'd prefer to leave the opacity as-is and add my own labels layer on top of the polygons.\r\n\r\nCould you add a feature that allows text to be added to a location on the map *without using popups or markers*? I'm thinking of a function that is identical to `addPopups` except that it just displays the text and inherits styling from the map's .css file.\r\n\r\nThanks for the great package!"},"comment":{"url":"https://api.github.com/repos/rstudio/leaflet/issues/comments/165207511","html_url":"https://github.com/rstudio/leaflet/issues/218#issuecomment-165207511","issue_url":"https://api.github.com/repos/rstudio/leaflet/issues/218","id":165207511,"user":{"login":"tiernanmartin","id":8197328,"avatar_url":"https://avatars.githubusercontent.com/u/8197328?v=3","gravatar_id":"","url":"https://api.github.com/users/tiernanmartin","html_url":"https://github.com/tiernanmartin","followers_url":"https://api.github.com/users/tiernanmartin/followers","following_url":"https://api.github.com/users/tiernanmartin/following{/other_user}","gists_url":"https://api.github.com/users/tiernanmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/tiernanmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiernanmartin/subscriptions","organizations_url":"https://api.github.com/users/tiernanmartin/orgs","repos_url":"https://api.github.com/users/tiernanmartin/repos","events_url":"https://api.github.com/users/tiernanmartin/events{/privacy}","received_events_url":"https://api.github.com/users/tiernanmartin/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T18:42:52Z","updated_at":"2015-12-16T18:42:52Z","body":"@bhaskarvk Thanks for mentioning the Leaflet.Label plugin. It's pretty close to what I'm looking for.\r\n\r\nWould it be possible to add a 'boxOpacity' to the 'labelOptions' argument? I'd like to end up with a map with static text labels *without any boxes around them*. "}}