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

Popup on individual marker? #49

Open
tenznhok opened this issue Nov 2, 2016 · 0 comments
Open

Popup on individual marker? #49

tenznhok opened this issue Nov 2, 2016 · 0 comments

Comments

@tenznhok
Copy link

tenznhok commented Nov 2, 2016

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.

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

1 participant