Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does one display multiple points to the map properly? #4

Closed
chrismanderson opened this issue Oct 26, 2015 · 2 comments
Closed

How does one display multiple points to the map properly? #4

chrismanderson opened this issue Oct 26, 2015 · 2 comments

Comments

@chrismanderson
Copy link

How do I have multiple points displayed on the map, all animated when their position is updated, but without passing the array of all location points into the Pubnub channel at once? E.g., if I have three cars I want to track, each car would push up their own location separately. The examples such as https://www.pubnub.com/developers/eon/map/flight/ seem to imply you need to bach all of the location points together. I'd love to know what I'm missing!

@ianjennings
Copy link
Contributor

Hey @chrismanderson,

You can absolutely plot different points from different devices. Each value within message should include a unique key.

message:  
      {
        66e234a: {
           latlng: [

The flight example in which you link doesn't batch the location, only a subset of planes are updated on every subscribe.

@ianjennings
Copy link
Contributor

You should also look at the "distributed" example which accomplishes exactly this:
https://github.com/pubnub/eon-map/blob/master/examples/distributed.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants