PitchInteractiveInc / tilegrams

Make hexagonally tiled cartograms
http://pitchinteractiveinc.github.com/tilegrams
ISC License
214 stars 49 forks source link

fix incorrect polygon encoding #80

Closed jessihamel closed 7 years ago

jessihamel commented 7 years ago

• 'MultiPolygons' were being converted to 'Polygons' during the geojson -> topojson conversion because they were incorrectly encoded (not enough array nesting). https://github.com/PitchInteractiveInc/tilegrams/issues/79 This commit fixes that issue and ensures correct encoding on export. • Previously exported tilegrams should still import correctly, but if exported again will have the new, correct encoding. • Tilegram import now handles both MultiPolygon and Polygon (1-to-1) tilegram geometries. • Updates pre-made tilegrams to have correct encoding.