Skip to content

Instantly share code, notes, and snippets.

View tmcw's full-sized avatar
💭
merging your prs except if they're ai-generated

Tom MacWright tmcw

💭
merging your prs except if they're ai-generated
View GitHub Profile
@tmcw
tmcw / README.md
Created June 19, 2012 14:07 — forked from tristen/README.md
Two Maps

##Two Maps

Experiment in synching two maps together.

Contributors

@tmcw
tmcw / index.html
Created June 20, 2012 16:47 — forked from tristen/index.html
Map/Update Map function
<div id='map'></div>
<ul class='layers'>
<li><a class='active' data-layer='mapbox.mapbox-graphite' href='#'>Mapbox Graphite</a></li>
</ul>
@tmcw
tmcw / index.html
Created August 24, 2012 16:27 — forked from dvd3141/index.html
MapBox showOnHover debugging
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.4/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.4/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
@tmcw
tmcw / index.html
Created August 28, 2012 16:43 — forked from dvd3141/index.html
MapBox showOnHover debugging
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.4/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.4/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
@tmcw
tmcw / index.html
Created September 5, 2012 19:25 — forked from samanpwbb/index.html
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
@tmcw
tmcw / README.md
Last active July 12, 2018 22:22 — forked from mbostock/.block
Line Chart
@tmcw
tmcw / README.md
Created November 14, 2012 20:32 — forked from mbostock/.block
SVG Swarm
@tmcw
tmcw / index.html
Created November 22, 2012 15:55 — forked from mourner/index.html
SVG points and 3d transforms
<!DOCTYPE html>
<meta charset="utf-8">
<title>SVG Swarm</title>
<style>
svg {
position: absolute;
top: 0;
}
@tmcw
tmcw / event.js
Created December 18, 2012 19:44 — forked from wboykinm/event.js
$(layer).click(function(e) {
$.each(map.layers, function(l) {
l.disable();
});
map.enableLayer(i);
$(this).addClass('active');
});