Skip to content

Commit

Permalink
#32 - added entities to a CustomDataSource object, which will manage …
Browse files Browse the repository at this point in the history
…clustering
  • Loading branch information
christopherreay committed Sep 16, 2017
1 parent 133a790 commit 2bd0149
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Apps/tmforum.globe.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@
'<iframe src="https://player.vimeo.com/video/183219589?title=0&byline=0&portrait=0" width="100%" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> <p><a href="https://vimeo.com/183219589">Jessie Adcock Ivw V1</a> from <a href="https://vimeo.com/telcoprofessionals">TelcoProfessionals</a> on <a href="https://vimeo.com">Vimeo</a>.</p>',
);

//Create a "DataSource", which is a thing that does the clustering management
var contentDataSource = new Cesium.CustomDataSource("contentByLocation");

// Iterate through the dictionary and create the interface components
Object.keys(contentByLocationDict)
Expand Down Expand Up @@ -268,10 +270,13 @@
{ entityToAdd.description += '<p class="description video">' + value.video +'</p>';
}

viewer.entities.add(entityToAdd);
contentDataSource.entities.add(entityToAdd);

}
);

viewer.dataSources.add(contentDataSource);

// <style>
// @import url(css/bucket.css);
// #toolbar {
Expand Down

0 comments on commit 2bd0149

Please sign in to comment.