floledermann / mapmap.js

A data-driven API for interactive thematic maps
GNU Affero General Public License v3.0
113 stars 12 forks source link

Using map/reduce to create a topojson.mesh? #21

Open wahlatlas opened 9 years ago

wahlatlas commented 9 years ago

So far the map/reduce functionality is described as a way of aggregating data, e.g. population data for administrative districts from their municipalities. Is it also possible to use this for creating higher-level boundaries from topojson?

In this example http://bl.ocks.org/mbostock/5925375 the topojson.mesh functionality is demontrated to create US State boundaries from counties. However since the whole topojson – thankfully(!) – is abstracted away in mapmap.js, it is not clear to me exactly where one would attach the creation of such a mesh.