Skip to content

Instantly share code, notes, and snippets.

@milkbread
milkbread / GET_test.html
Created September 4, 2013 19:42
JavaScript: GeoJSONSimplifier_0.1
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
</body>
<script>
//!!!Cross-origin not allowed!!!
/*You have to build a test-environment ... needs a local version of WebGen-WPS (http://kartographie.geo.tu-dresden.de/webgen_docs/index.php?option=com_content&view=article&id=52&Itemid=82&lang=de)
@milkbread
milkbread / README.md
Last active December 21, 2015 14:58 — forked from mbostock/.block

This variation of the map zooming example uses interaction to control a smooth zooming interpolator. Mouse over the map to zoom between San Francisco, New Orleans and New York.

&&

I really like this demo! As I am currently taking part in the ICA Commission Workshop on Generalization...that brings up the idea to add...

Scale-dependent simplification of the MultiLineStrings

@milkbread
milkbread / LICENSE
Last active December 21, 2015 00:19
ICC - Demo on TopoJSON
Copyright (c) 2012, Michael Bostock
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
@milkbread
milkbread / index.html
Created August 9, 2013 12:06
HTML: Mousecursor, define them
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<title>Example for individual mouse pointer</title>
<style>
body {
margin: 1em auto 4em auto;
width: 960px;
}
@milkbread
milkbread / npm-debug.log
Last active December 20, 2015 03:19
Debug-upload
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'topojson' ]
2 info using [email protected]
3 info using [email protected]
4 verbose read json /usr/local/lib/package.json
5 verbose read json /usr/local/lib/package.json
@milkbread
milkbread / index.html
Last active December 20, 2015 02:09
HTML: TopoJSON: Direct Tiling Test I
<!DOCTYPE html>
<html>
<head>
<title>Testing Simple Tiling</title>
<meta charset="utf-8" />
<script src="http://cdn.leafletjs.com/leaflet-0.6.1/leaflet.js"></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<style>
@import url(http://cdn.leafletjs.com/leaflet-0.6.1/leaflet.css);
@milkbread
milkbread / index.html
Created July 19, 2013 15:51
HTML: TopoJSON: linear overlap example
<!DOCTYPE html>
<html>
<head>
<title>Testmap</title>
<meta charset="utf-8" />
<script src="http://cdn.leafletjs.com/leaflet-0.6.1/leaflet.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://bl.ocks.org/milkbread/raw/5779939/RKMapping_0.4.4.js"></script> <!--http://bl.ocks.org/milkbread/raw/5779939-->
<script src="http://bl.ocks.org/milkbread/raw/5829814/RKAggregation_1.0.js"></script> <!--http://bl.ocks.org/milkbread/raw/5829814 this function needs RKMapping.js additionally-->
@milkbread
milkbread / LICENSE
Last active December 19, 2015 21:09
EDC-StackPresentation
Copyright (c) 2012, Michael Bostock
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
@milkbread
milkbread / index.html
Last active December 19, 2015 17:58
D3: TopoJSON: Animated demonstration on polygon aggregation I
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js"></script>
<!--<script src="https://gist.github.com/milkbread/5713629/raw/RKMapping_0.4.js"></script>-->
<script src="http://bl.ocks.org/milkbread/raw/5779939/RKMapping_0.4.4.js"></script> <!--http://bl.ocks.org/milkbread/raw/5779939-->
<script src="http://bl.ocks.org/milkbread/raw/5829814/RKAggregation_1.0.js"></script> <!--http://bl.ocks.org/milkbread/raw/5829814 this function needs RKMapping.js additionally-->
@milkbread
milkbread / index.html
Created July 14, 2013 13:24
HTML: D3: Leaflet: Transparency Demo
<!DOCTYPE html>
<html>
<head>
<title>Testmap</title>
<meta charset="utf-8" />
<script src="http://cdn.leafletjs.com/leaflet-0.6.1/leaflet.js"></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
<style>
@import url(http://cdn.leafletjs.com/leaflet-0.6.1/leaflet.css);
</style>