I have a geojson object like the one defined at the bottom. I am trying to get just the name of each country and feed it into an array but can't figure out how to.
I can only get access to the feature using worldData.features
but when I try to do worldData.features.properties.name
it gives me undefined error. Any help will be appreciated.
Thanks.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment