I added layering support by allowing geohash to store features in {key: {layer:features}}. testLayers.html is the test page to see the effect. By setting "layered_map" to true, one can select different layers to show on the map. I tested both static and dynamic maps. Current layers are based on the tages in style.gss. Thanks.
You can merge this Pull Request by running:
git pull https://github.com/goododd/cartagen master
Or you can view, comment on it, or merge it online at:
https://github.com/jywarren/cartagen/pull/106
-- Commit Summary --
* add support for filtering based on layers, which correponds to tags in style.gss
-- File Changes --
M .line_data.dat (0)
M cartagen.js (55)
M src/cartagen.js (5)
M src/config/config.js (2)
M src/data/importer.js (2)
M src/mapping/geohash.js (52)
A testLayers.html (78)
-- Patch Links --
https://github.com/jywarren/cartagen/pull/106.patch
https://github.com/jywarren/cartagen/pull/106.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/jywarren/cartagen/pull/106