Open tenznhok opened 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.
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.