hallahan / LeafletPlayback

This is a Leaflet plug-in that plays back points that have a time stamp synchronized to a clock.
http://leafletplayback.theoutpost.io
Other
482 stars 165 forks source link

Popup on individual marker? #49

Open tenznhok opened 7 years ago

tenznhok commented 7 years ago

My GeoJSON is look like this:

var mycode = { "type": "Feature", "geometry": { "type": "MultiPoint", "coordinates": coord }, "properties": { "path_options": {"color": "red"}, "time": timeStamp, "adv" : adv }
where coord, timeStamp, adv are array of data

Each marker has different adv data. I am trying to put the adv data on each marker using:

marker: function(featureData) { return{ getPopup: function(feature){ return feature.properties.adv } }; }

But I get value of adv array show on the popup instead of one marker show one adv data.

I am wondering how can I make each popup's marker show one data in the array, not the whole array data.