{"action":"created","issue":{"url":"https://api.github.com/repos/r-spatial/mapview/issues/166","repository_url":"https://api.github.com/repos/r-spatial/mapview","labels_url":"https://api.github.com/repos/r-spatial/mapview/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/r-spatial/mapview/issues/166/comments","events_url":"https://api.github.com/repos/r-spatial/mapview/issues/166/events","html_url":"https://github.com/r-spatial/mapview/issues/166","id":342999814,"node_id":"MDU6SXNzdWUzNDI5OTk4MTQ=","number":166,"title":"Color gradient of polylines ","user":{"login":"angelovangel","id":25361376,"node_id":"MDQ6VXNlcjI1MzYxMzc2","avatar_url":"https://avatars3.githubusercontent.com/u/25361376?v=4","gravatar_id":"","url":"https://api.github.com/users/angelovangel","html_url":"https://github.com/angelovangel","followers_url":"https://api.github.com/users/angelovangel/followers","following_url":"https://api.github.com/users/angelovangel/following{/other_user}","gists_url":"https://api.github.com/users/angelovangel/gists{/gist_id}","starred_url":"https://api.github.com/users/angelovangel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelovangel/subscriptions","organizations_url":"https://api.github.com/users/angelovangel/orgs","repos_url":"https://api.github.com/users/angelovangel/repos","events_url":"https://api.github.com/users/angelovangel/events{/privacy}","received_events_url":"https://api.github.com/users/angelovangel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-20T07:21:09Z","updated_at":"2018-07-23T07:19:31Z","closed_at":null,"author_association":"NONE","body":"I think it would be great if something like the [Leaflet.hotline](https://github.com/iosphere/Leaflet.hotline) plugin could be implemented in `mapview`, especially for `sf` data (and thus making use of those Z/M dimensions). I could get the `JS` Leaflet.hotline plugin running in `leaflet`, using `onRender()`, but find it too complicated. Or are there other options?\r\nBest! \r\n"},"comment":{"url":"https://api.github.com/repos/r-spatial/mapview/issues/comments/406963618","html_url":"https://github.com/r-spatial/mapview/issues/166#issuecomment-406963618","issue_url":"https://api.github.com/repos/r-spatial/mapview/issues/166","id":406963618,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjk2MzYxOA==","user":{"login":"tim-salabim","id":2826432,"node_id":"MDQ6VXNlcjI4MjY0MzI=","avatar_url":"https://avatars2.githubusercontent.com/u/2826432?v=4","gravatar_id":"","url":"https://api.github.com/users/tim-salabim","html_url":"https://github.com/tim-salabim","followers_url":"https://api.github.com/users/tim-salabim/followers","following_url":"https://api.github.com/users/tim-salabim/following{/other_user}","gists_url":"https://api.github.com/users/tim-salabim/gists{/gist_id}","starred_url":"https://api.github.com/users/tim-salabim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tim-salabim/subscriptions","organizations_url":"https://api.github.com/users/tim-salabim/orgs","repos_url":"https://api.github.com/users/tim-salabim/repos","events_url":"https://api.github.com/users/tim-salabim/events{/privacy}","received_events_url":"https://api.github.com/users/tim-salabim/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T07:19:31Z","updated_at":"2018-07-23T07:19:31Z","author_association":"MEMBER","body":"This is essentially what @edzer is doing at the bottom of [this post](https://www.r-spatial.org/r/2017/08/28/nest.html). I effectively means that you need to slice each LINETSRING into its segments and then color those. This, however, means that you need to decide how to map two values (z-value of segment start and z-value of segement end point) to one color (as you can have only one color per LINESTRING in leaflet). In case you are happy to review any of the other plugins you mention, I am haoppy to try to integrate them (if we find a suitable candidate)."}}
{"actor":{"display_login":"tim-salabim"}}