LeafletPlayback icon indicating copy to clipboard operation
LeafletPlayback copied to clipboard

Popup on individual marker?

Open tenznhok opened this issue 7 years ago • 0 comments

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.

tenznhok avatar Nov 02 '16 15:11 tenznhok