Closed niryariv closed 10 years ago
implemented in the topojson branch: https://github.com/niryariv/opentaba-client/tree/topojson it is pretty good sizewise vs geojson (to be fair, i also just figured out i can get rid of the properties dictionary in favor of just an id field, but still..). only one file in the gushim folder is over 1mb in its topojson form.
@niryariv want to merge?
yalla merge
done. closing. all hail topojson.
still using geojson in the code though, no? topos are only on master..
ah yes sorry, only merged into master and forgot about gh-pages. did it now.
we still need to actually use the topo in the app.js code - but i guess that could be done with https://github.com/niryariv/opentaba-server/issues/71
but it is used: https://github.com/niryariv/opentaba-client/blob/master/app.js#L293 it only took minor changes, only this commit: https://github.com/niryariv/opentaba-client/commit/6f85bd56d1453f7c12f5006ec01f62c31d72ca9b
cool :)
On Thu, Jul 3, 2014 at 9:21 PM, florpor notifications@github.com wrote:
but it is used: https://github.com/niryariv/opentaba-client/blob/master/app.js#L293 it only took minor changes, only this commit: 6f85bd5 https://github.com/niryariv/opentaba-client/commit/6f85bd56d1453f7c12f5006ec01f62c31d72ca9b
— Reply to this email directly or view it on GitHub https://github.com/niryariv/opentaba-client/issues/59#issuecomment-47966235 .
TopoJSON is an extension of GeoJSON which reduces file size significantly (in some tests I ran on large GeoJSON files, the Topo equivalent was about %10 of the original)
It's easy to use with Leaflet.js: http://bl.ocks.org/JasonSanford/4554134