kartograph

所属分类:GIS/地图编程
开发工具:CoffeeScript
文件大小:315KB
下载次数:0
上传日期:2018-05-12 17:21:09
上 传 者sh-1993
说明:  Kartograph SVG映射的未维护开源JavaScript渲染器
(UNMAINTAINED Open source JavaScript renderer for Kartograph SVG maps)

文件列表:
CHANGELOG.md (595, 2017-05-22)
LICENSE (7653, 2017-05-22)
build.sh (468, 2017-05-22)
demo (0, 2017-05-22)
dist (0, 2017-05-22)
dist\css (0, 2017-05-22)
dist\css\kartograph.css (850, 2017-05-22)
dist\css\zoom.png (4149, 2017-05-22)
dist\kartograph.js (171129, 2017-05-22)
dist\kartograph.min.js (67228, 2017-05-22)
doc (0, 2017-05-22)
lib (0, 2017-05-22)
lib\chroma.colors.js (7940, 2017-05-22)
lib\chroma.js (31470, 2017-05-22)
lib\colorbrewer.css (54882, 2017-05-22)
lib\dat.gui.min.js (45411, 2017-05-22)
lib\jquery.assets.js (367, 2017-05-22)
lib\jquery.csv.js (1522, 2017-05-22)
lib\jquery.min.js (92629, 2017-05-22)
lib\jquery.parsecsv.js (1278, 2017-05-22)
lib\proj4js-compressed.js (83318, 2017-05-22)
lib\raphael-min.js (83924, 2017-05-22)
package.json (1053, 2017-05-22)
src (0, 2017-05-22)
src\core.coffee (2794, 2017-05-22)
src\core (0, 2017-05-22)
src\core\bbox.coffee (2354, 2017-05-22)
src\core\clipping.coffee (3343, 2017-05-22)
src\core\kartograph.coffee (12533, 2017-05-22)
src\core\lonlat.coffee (1424, 2017-05-22)
src\core\maplayer.coffee (5624, 2017-05-22)
src\core\maplayerpath.coffee (2402, 2017-05-22)
src\core\parsecss.coffee (3620, 2017-05-22)
src\core\path.coffee (6197, 2017-05-22)
src\core\proj.coffee (29442, 2017-05-22)
... ...

### This project is not maintained anymore. Here are a few reasons why I stopped working on kartograph.js: * there's no need to support non-SVG browsers anymore, so if I would touch kartograph.js again I would through out the Raphael.js dependency, which would result in a complete re-write which I don't want to spend my time on, because... * d3.js is an amazing library that can do all the vector mapping that you need! Also d3.js has much more map projections and is more fun to work with. * Finally, TopoJSON beats SVG as vector geo data format. So, thanks for the good time we had! Of course, if you still want to take over from here, kartograph.js is all yours. Just send me an email. ------------- # Kartograph.js Kartograph.js is a JavaScript library that renders [SVG maps](https://github.com/kartograph/kartograph.py/) in web browsers. It is built on top of [jQuery](http://jquery.com) and [RaphaelJS](http://raphaeljs.com). Please have a look at the [API docs](https://github.com/kartograph/kartograph.js/wiki/API) for more details. Initializing a new map ````javascript map = $K.map('#map', 600, 400); map.loadMap('world.svg', function() { map.addLayer('countries', { styles: { fill: '#ee9900' }, title: function(d) { return d.countryName; } }); }); ``` Choropleth maps (aka coloring map polygons based on data): ```javascript pop_density = { 'USA': 123455, 'CAN': 232323, ... }; colorscale = new chroma.ColorScale({ colors: chroma.brewer.YlOrRd, limits: chroma.limits(chroma.analyze(pop_density), 'k-means', 9) }); map.getLayer('countries').style('fill', function(data) { return colorscale.get(pop_density[data.iso]); }); ``` Adding symbols is easy, too: ```javascript cities = [{ lat: 43, lon: -75, label: 'New York', population: 19465197 }]; map.addSymbols({ data: cities, location: function(d) { return [d.lon, d.lat]; }, type: Kartograph.Bubble, radius: function(d) { return Math.sqrt(d.population) * 0.001; } }) ``` ### Author Kartograph was created by [Gregor Aisch](http://github.com/gka/). It is supported by [Piwik Web Analytics](http://piwik.org) and the [Open Knowledge Foundation](http://okfn.org). ### License Kartograph.js is licensed under [LGPL](http://www.gnu.org/licenses/lgpl-3.0.txt)

近期下载者

相关文件


收藏者