SINTEF-9012 / PruneCluster

Fast and realtime marker clustering for Leaflet
MIT License
551 stars 131 forks source link

added json example #135

Closed maxvonhippel closed 7 years ago

maxvonhippel commented 7 years ago

I added an example of how to load basic Point features from a JSON file into a PruneCluster Leaflet map. In order for my example to work you must unzip the zip'd JSON file as it is quite large. The benefit is that this also demonstrates the capacities of PruneCluster for large data - in this case, with a JSON file with over 3,000,000 items.

fungiboletus commented 7 years ago

Thank you :-)

maxvonhippel commented 7 years ago

Hey, I'm working on filtering by date stamp for my project, and I'll be using a slider in the GUI with two nodes on it to set a date range and then only show the objects in that range. Would it be helpful if I committed this as an update to my json-extmple fork and did a pull request, so the example would show how to parse json as well as how to use filtering based off of information in the marker.data ? Or is that not a useful thing to add to the example? ( I have to do all this anyway for my job, I don't mind sharing it if you think it would be helpful but if it's just extra stuff that will make the example more difficult to understand from or if filtering is already well demonstrated elsewhere then there's no point in committing the code and doing a pull request, so let me know )