{"action":"created","issue":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/6316","repository_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium","labels_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/6316/labels{/name}","comments_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/6316/comments","events_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/6316/events","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/6316","id":303959968,"number":6316,"title":"Add ordering at the DataSource level","user":{"login":"hpinkos","id":3451886,"avatar_url":"https://avatars3.githubusercontent.com/u/3451886?v=4","gravatar_id":"","url":"https://api.github.com/users/hpinkos","html_url":"https://github.com/hpinkos","followers_url":"https://api.github.com/users/hpinkos/followers","following_url":"https://api.github.com/users/hpinkos/following{/other_user}","gists_url":"https://api.github.com/users/hpinkos/gists{/gist_id}","starred_url":"https://api.github.com/users/hpinkos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpinkos/subscriptions","organizations_url":"https://api.github.com/users/hpinkos/orgs","repos_url":"https://api.github.com/users/hpinkos/repos","events_url":"https://api.github.com/users/hpinkos/events{/privacy}","received_events_url":"https://api.github.com/users/hpinkos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-09T19:50:29Z","updated_at":"2018-03-17T14:28:25Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/6316","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/6316","diff_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/6316.diff","patch_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/6316.patch"},"body":"This change makes order matter in `DataSourceCollection`.  It only has an effect on ground primitives.  All ground primitives from one `DataSource` render above all ground primitives in a lower `DataSource` in the same `DataSourceCollection`\r\n\r\n- Added `raise`, `lower`, `raiseToTop`, `lowerToButtom` methods in `DataSourceCollection`\r\n- Instead of adding everything directly to `scene.primitives`/`scene.groundPrimitives`, `DataSourceDisplay` creates it's own `PrimitiveCollections`.  This is so the order of data sources in the data source collection has a one-to-one mapping with the order of primitives in the primitive collection.\r\n- When a new data source is added to the data source collection, `DataSourceDisplay` creates a `PrimitiveCollection` for all the entities in that data source to use.\r\n- When the ordering of data sources changes, `DataSourceDisplay` re-orders the corresponding `PrimitiveCollection` so the ground primitives layer accordingly\r\n- Added a Sandcastle example to demonstrate this with CZML"},"comment":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/comments/373924137","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/6316#issuecomment-373924137","issue_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/6316","id":373924137,"user":{"login":"mramato","id":1495196,"avatar_url":"https://avatars2.githubusercontent.com/u/1495196?v=4","gravatar_id":"","url":"https://api.github.com/users/mramato","html_url":"https://github.com/mramato","followers_url":"https://api.github.com/users/mramato/followers","following_url":"https://api.github.com/users/mramato/following{/other_user}","gists_url":"https://api.github.com/users/mramato/gists{/gist_id}","starred_url":"https://api.github.com/users/mramato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mramato/subscriptions","organizations_url":"https://api.github.com/users/mramato/orgs","repos_url":"https://api.github.com/users/mramato/repos","events_url":"https://api.github.com/users/mramato/events{/privacy}","received_events_url":"https://api.github.com/users/mramato/received_events","type":"User","site_admin":false},"created_at":"2018-03-17T14:28:25Z","updated_at":"2018-03-17T14:28:25Z","author_association":"MEMBER","body":"Just those two comments."}}
{"actor":{"display_login":"mramato"}}