topojson / topojson-client

Manipulate TopoJSON, such as to merge shapes, and convert it back to GeoJSON.
ISC License
213 stars 63 forks source link

Topojson.feature() Returning Undefined #25

Closed waleedshkt closed 4 years ago

waleedshkt commented 4 years ago

I am trying to render districts outlines on a map using updated topojson file which I created from geojson file.

I successfully made the original file create map using d3. Bu then, I added more features created using "geojson.io". I did so by exporting features in geojson format, appending them to original districts geojson file and then finally converting the updated geojson file to topojson using geo2topo. cli

The new topojson file seems to run perfectly on "geojson.io", "mapShaper". But in my app, on passing the topology and topojson object to topojson-client's feature method, it returns undefined.

I've checked the initial topojson file with new one. All the keys/ values are there, and that because latter works on above mentioned sites. I've been forced to believe there is some bug in the method which is returning undefined.