pubnub / eon-map

Realtime maps with PubNub and MapBox.
https://www.pubnub.com/developers/eon/
MIT License
135 stars 51 forks source link

Ability to globally change certain marker styles after adding? #5

Closed chrismanderson closed 8 years ago

chrismanderson commented 8 years ago

Ideally, I'd like to be able to loop through and fade/change the color for all markers that haven't been updated after a certain time. Is this possible with the current Eon framework?

ianjennings commented 8 years ago

Check out the marker function within the EON config. You can use this create custom markers. You could pair this with a "setTimeout()" to change the marker color over time.

In addition, the eon.map() function returns a Mapbox object. Alternatively, you can use the mapbox object to get markers and update them according to your needs.