{"action":"created","issue":{"url":"https://api.github.com/repos/pyviz/geoviews/issues/215","repository_url":"https://api.github.com/repos/pyviz/geoviews","labels_url":"https://api.github.com/repos/pyviz/geoviews/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/pyviz/geoviews/issues/215/comments","events_url":"https://api.github.com/repos/pyviz/geoviews/issues/215/events","html_url":"https://github.com/pyviz/geoviews/issues/215","id":349997930,"node_id":"MDU6SXNzdWUzNDk5OTc5MzA=","number":215,"title":"Cannot update WMTS url in a DynamicMap","user":{"login":"jlstevens","id":890576,"node_id":"MDQ6VXNlcjg5MDU3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/890576?v=4","gravatar_id":"","url":"https://api.github.com/users/jlstevens","html_url":"https://github.com/jlstevens","followers_url":"https://api.github.com/users/jlstevens/followers","following_url":"https://api.github.com/users/jlstevens/following{/other_user}","gists_url":"https://api.github.com/users/jlstevens/gists{/gist_id}","starred_url":"https://api.github.com/users/jlstevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlstevens/subscriptions","organizations_url":"https://api.github.com/users/jlstevens/orgs","repos_url":"https://api.github.com/users/jlstevens/repos","events_url":"https://api.github.com/users/jlstevens/events{/privacy}","received_events_url":"https://api.github.com/users/jlstevens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-13T11:52:37Z","updated_at":"2018-08-13T12:33:37Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"\r\nHere is an example of what I would expect to work:\r\n\r\n```python\r\nclass Example(param.Parameterized):\r\n\r\n    def __init__(self, url='<WMTS URL>'):\r\n        self.url_stream = hv.streams.Stream.define('url', url=url)()\r\n\r\n    def url(self, url):\r\n        self.url_stream.event(url=url)\r\n\r\n    def callback(self, url):\r\n        return gv.WMTS(url, extents=(-180, -90, 180, 90), crs=ccrs.PlateCarree())\r\n\r\n    def __call__(self):\r\n        return gv.DynamicMap(self.callback, streams=[self.url_stream])\r\n```\r\n\r\nWhich can then be used to create a plot with:\r\n\r\n```python\r\nplot = Example()\r\nplot()\r\n```\r\n\r\nThen using the ``plot`` handle, you would expect to be able to update the WMTS via the dynamic map with:\r\n\r\n```python\r\nplot.url('<NEW WMTS URL>')\r\n```\r\n\r\nI would expect this to update the plot as ``callback`` is invoked with the new URL and it returns a new ``WMTS`` element. HoloViews version is ``1.11.0a1.post10+g5e00a9af`` and the GeoViews version is '1.5.3'."},"comment":{"url":"https://api.github.com/repos/pyviz/geoviews/issues/comments/412502476","html_url":"https://github.com/pyviz/geoviews/issues/215#issuecomment-412502476","issue_url":"https://api.github.com/repos/pyviz/geoviews/issues/215","id":412502476,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjUwMjQ3Ng==","user":{"login":"philippjfr","id":1550771,"node_id":"MDQ6VXNlcjE1NTA3NzE=","avatar_url":"https://avatars2.githubusercontent.com/u/1550771?v=4","gravatar_id":"","url":"https://api.github.com/users/philippjfr","html_url":"https://github.com/philippjfr","followers_url":"https://api.github.com/users/philippjfr/followers","following_url":"https://api.github.com/users/philippjfr/following{/other_user}","gists_url":"https://api.github.com/users/philippjfr/gists{/gist_id}","starred_url":"https://api.github.com/users/philippjfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippjfr/subscriptions","organizations_url":"https://api.github.com/users/philippjfr/orgs","repos_url":"https://api.github.com/users/philippjfr/repos","events_url":"https://api.github.com/users/philippjfr/events{/privacy}","received_events_url":"https://api.github.com/users/philippjfr/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T12:33:37Z","updated_at":"2018-08-13T12:33:37Z","author_association":"CONTRIBUTOR","body":"There was a bug in GeoViews that meant the URL was not updated correctly, however even with that fix applied there are certain issues with the way tiles are cached: https://github.com/bokeh/bokeh/issues/8164"}}
{"actor":{"display_login":"philippjfr"}}