Closed psaia closed 12 years ago
Try geoJson.features.
Well I believe geoJson.features is not working for me because I am passing a JSON object with the type "FeatureCollection" on it. I guess there is no support for that?
Wrap the object in an array, e.g., features([myFeature])
.
That worked, thanks!
I think that if I have a geoJSON object already loaded on the page I should be able to add it to the map. Though, I could be missing something. I definitely didn't see any examples of this in the API.