morganherlocker / geocolor Goto Github PK
View Code? Open in Web Editor NEWstyle geojson based on data classifications
Home Page: http://geocolor.io
License: MIT License
style geojson based on data classifications
Home Page: http://geocolor.io
License: MIT License
takes a feature collection and a set of styles and applies them.
Useful for gist access
Needs a legend to be generated from classification output
Somewhere there should be a load sample button. Perhaps it could even be a flag passed into the URL and read on load.
Allow zipped shapefiles in geocolor.io via https://github.com/calvinmetcalf/shapefile-js
share a fullscreen map with a link to a bl.ock, sort of like the one on geojson.io
make linkable gists with url params:
geocolor.io/?gist=0020303043
Allow styles to be controlled by either buttons/inputs or as raw text.
setup a domain for the geocolor app
Hello @morganherlocker !
I noticed the http://geocolor.io/ link is no longer propagating, probably not a priority for you right now but I though you might want to know!
Thanks!
This should be a button, and may be the default for links, or an option in the url params. This will make it easy to share visualizations with non technical users.
simple cli for piping in geojson data and piping out styled data
Add help tips for each of the controls
All I need is to do set the fonts, form controls, and textarea styles to remove bootstrap.
The map gets screwy when there are lots of properties on a shared map. Example:
Thanks for your help! It took me a little longer to get all the data together.
I can load this map on http://geocolor.io/# but all I see are dots rather then regions being colored.
The input file:
heatmap.geojson.zip
The code:
var geocolor = require('geocolor');
var fs = require('fs');
try {
var heatmap = JSON.parse(fs.readFileSync('./heatmap.geojson'));
} catch (err) {
console.log('err',err);
}
var z = 'stars',
numberOfBreaks = 5,
colors = ['red', 'blue', 'white'];
// jenks
var geoJenks = geocolor.jenks(heatmap, z, numberOfBreaks, colors);
fs.writeFileSync('./jenks.geojson', JSON.stringify(geoJenks));
My output Jenks.json:
jenks.geojson.zip
The share: http://bl.ocks.org/anonymous/raw/39c4ed96bf428cc67344
Add the ability to parse strings and group by unique values in geocolor.io. This may become a part of the geocolor module as well, but I have not decided yet.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.