{"action":"created","issue":{"url":"https://api.github.com/repos/tangrams/tangram-es/issues/989","repository_url":"https://api.github.com/repos/tangrams/tangram-es","labels_url":"https://api.github.com/repos/tangrams/tangram-es/issues/989/labels{/name}","comments_url":"https://api.github.com/repos/tangrams/tangram-es/issues/989/comments","events_url":"https://api.github.com/repos/tangrams/tangram-es/issues/989/events","html_url":"https://github.com/tangrams/tangram-es/issues/989","id":180313949,"node_id":"MDU6SXNzdWUxODAzMTM5NDk=","number":989,"title":"Collision in draw group","user":{"login":"westnordost","id":4661658,"node_id":"MDQ6VXNlcjQ2NjE2NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/4661658?v=4","gravatar_id":"","url":"https://api.github.com/users/westnordost","html_url":"https://github.com/westnordost","followers_url":"https://api.github.com/users/westnordost/followers","following_url":"https://api.github.com/users/westnordost/following{/other_user}","gists_url":"https://api.github.com/users/westnordost/gists{/gist_id}","starred_url":"https://api.github.com/users/westnordost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westnordost/subscriptions","organizations_url":"https://api.github.com/users/westnordost/orgs","repos_url":"https://api.github.com/users/westnordost/repos","events_url":"https://api.github.com/users/westnordost/events{/privacy}","received_events_url":"https://api.github.com/users/westnordost/received_events","type":"User","site_admin":false},"labels":[{"id":124939069,"node_id":"MDU6TGFiZWwxMjQ5MzkwNjk=","url":"https://api.github.com/repos/tangrams/tangram-es/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-30T14:12:19Z","updated_at":"2018-06-08T08:13:27Z","closed_at":"2018-06-08T08:13:27Z","author_association":"NONE","body":"I have the following use case: \n\n![markers](https://cloud.githubusercontent.com/assets/4661658/18993610/4e9a7f86-8724-11e6-9ad9-6fa304314148.png)\nWhen adding a point as a marker, I want to draw the map pin/marker first and then the icon of that marker on top instead of one marker+icon image for every different marker.\nThis is (almost) possible with the following scene.yaml:\n\n``` yaml\ntextures:\n    quests:\n        url: quests@2x.png\n        sprites:\n            signpost: [0,0,64,64]\n            marker: [127,127,90,90]\n\nstyles:\n    quest-icons:\n        base: points\n        texture: quests\n        blend: overlay\n\nlayers:\n    questslayer:\n        data: { source: osmagent_quests }\n        draw:\n            questicon:\n                size: 32px\n                sprite: function() { return feature.kind }\n                style: quest-icons\n                offset: [12px, -51px]\n                anchor: center\n            markericon:\n                size: 45px\n                anchor: top\n                offset: [5px, 5px]\n                sprite: marker\n                style: quest-icons\n```\n\nHowever, currently (0.4.2), the drawing of the `questicon` collides with the drawing of the `markericon` unless I specify `collide=false` for both because even elements within one sublayer but within different draw groups can collide. Ss far as I can see, there is currently no way to do this without disabling collision (which is not desirable).\n\nSo, I am posing the question: If is is desirable that the (drawings of) the one and same map feature can collide with itself, is there some way to define \"collision groups\"?\n"},"comment":{"url":"https://api.github.com/repos/tangrams/tangram-es/issues/comments/395685249","html_url":"https://github.com/tangrams/tangram-es/issues/989#issuecomment-395685249","issue_url":"https://api.github.com/repos/tangrams/tangram-es/issues/989","id":395685249,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTY4NTI0OQ==","user":{"login":"westnordost","id":4661658,"node_id":"MDQ6VXNlcjQ2NjE2NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/4661658?v=4","gravatar_id":"","url":"https://api.github.com/users/westnordost","html_url":"https://github.com/westnordost","followers_url":"https://api.github.com/users/westnordost/followers","following_url":"https://api.github.com/users/westnordost/following{/other_user}","gists_url":"https://api.github.com/users/westnordost/gists{/gist_id}","starred_url":"https://api.github.com/users/westnordost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westnordost/subscriptions","organizations_url":"https://api.github.com/users/westnordost/orgs","repos_url":"https://api.github.com/users/westnordost/repos","events_url":"https://api.github.com/users/westnordost/events{/privacy}","received_events_url":"https://api.github.com/users/westnordost/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T08:13:27Z","updated_at":"2018-06-08T08:13:27Z","author_association":"NONE","body":"Well, I think with greatly reduced manpower on this project, I think this feature is far not important enough to waste your time.\r\nFor StreetComplete, I solved this issue by automatically creating a sprite sheet + scene update from the icon resources. Code is here:\r\nhttps://github.com/westnordost/StreetComplete/blob/master/app/src/main/java/de/westnordost/streetcomplete/tangram/TangramQuestSpriteSheetCreator.java\r\n"}}
{"actor":{"display_login":"westnordost"}}