maptime-ams / geojson-3d

GeoJSON & TopoJSON in 3D, with Three.js
http://maptime-ams.github.io/geojson-3d/
81 stars 20 forks source link

can the lib support the polygon with holes? #4

Open dyh333 opened 7 years ago

dyh333 commented 7 years ago

hi, @maptime-ams. as the title, thanks.

bertspaan commented 7 years ago

Yes, it can; but currently, it doesn't. Only polygons with a single LinearRing are supported, see line 63 of js/geo.js. However, it should be easy to add support for other GeoJSON geometry types (like LineStrings, MultiPolygons, and Polygons with holes).