{"action":"closed","issue":{"url":"https://api.github.com/repos/maptalks/maptalks.js/issues/798","repository_url":"https://api.github.com/repos/maptalks/maptalks.js","labels_url":"https://api.github.com/repos/maptalks/maptalks.js/issues/798/labels{/name}","comments_url":"https://api.github.com/repos/maptalks/maptalks.js/issues/798/comments","events_url":"https://api.github.com/repos/maptalks/maptalks.js/issues/798/events","html_url":"https://github.com/maptalks/maptalks.js/issues/798","id":365122767,"node_id":"MDU6SXNzdWUzNjUxMjI3Njc=","number":798,"title":"ui.UIMarker 添加 ToolTip支持","user":{"login":"deyihu","id":25998927,"node_id":"MDQ6VXNlcjI1OTk4OTI3","avatar_url":"https://avatars1.githubusercontent.com/u/25998927?v=4","gravatar_id":"","url":"https://api.github.com/users/deyihu","html_url":"https://github.com/deyihu","followers_url":"https://api.github.com/users/deyihu/followers","following_url":"https://api.github.com/users/deyihu/following{/other_user}","gists_url":"https://api.github.com/users/deyihu/gists{/gist_id}","starred_url":"https://api.github.com/users/deyihu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deyihu/subscriptions","organizations_url":"https://api.github.com/users/deyihu/orgs","repos_url":"https://api.github.com/users/deyihu/repos","events_url":"https://api.github.com/users/deyihu/events{/privacy}","received_events_url":"https://api.github.com/users/deyihu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-29T11:07:09Z","updated_at":"2018-10-09T13:47:13Z","closed_at":"2018-10-09T13:47:13Z","author_association":"CONTRIBUTOR","body":"**maptalks's version and what browser you use?**\r\n----\r\n\r\n**Issue description**\r\n----\r\n复杂的点（图表等之类的东西）需要ui.UIMarker来支持\r\n\r\n需要ui.UIMarker进行消息提示，ui.UIMarker好像不支持ToolTip\r\n\r\n我看了一下ToolTip限制了 owner只能为Geometry实例，希望加个判断ui.UIMarker来支持ToolTip\r\n\r\n我试了一下，放开就可以了\r\n\r\n\r\n<pre>\r\n\r\n      if (owner instanceof Geometry) {\r\n            owner.on('mousemove', this.onMouseMove, this);\r\n            owner.on('mouseout', this.onMouseOut, this);\r\n            return super.addTo(owner);\r\n        } else {\r\n            throw new Error('Invalid geometry the tooltip is added to.');\r\n        }\r\n</pre>\r\n\r\n\r\n\r\n**Please provide a reproduction URL (on any jsfiddle like site)**\r\n----\r\n"}}
{"actor":{"display_login":"fuzhenn"}}