Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

Stream Location Coordinates Data Broadcast with JavaScript

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
1,414
Language
English
Hacker News Points
-
Summary

This blog series explores the creation of an animated D3 map projection using JavaScript and AngularJS, focusing on streaming location coordinates via a virtual rotating globe. The aim is to advance existing animated JavaScript globes by connecting them to the internet, allowing real-time reflection of movements from a broadcaster's globe to multiple subscribers through the broadcast pub/sub messaging design pattern. The tutorial details setting up a D3.js application with an orthographic projection to visualize and transmit coordinates using PubNub, a real-time messaging platform. The first part of the series guides users through building the broadcaster component, while the second part will cover developing the subscriber side to receive and animate the data, leveraging AngularJS and PubNub's Angular library.