Skip to content

Instantly share code, notes, and snippets.

View enjalot's full-sized avatar

Ian Johnson enjalot

View GitHub Profile
parseInt('04foo');
+'04foo';
+'1.5';
+'1e-4';
+'-.2'
@enjalot
enjalot / README.md
Last active December 14, 2015 13:48 — forked from monsieurBelbo/README.md

The Issue

I'm trying to build a map that can be zoomed using the mouse wheel and panned with drag. For that I'm using d3.behavior.zoom() and it works fine for the map. However, I also need to mark some points in the map (which are included in the same topojson used to draw the map). They get rendered just fine, but I'm having trouble handling the zoom behaviour with these points. If you try to zoom or pan, the points get translated abruptly and even seem to change their path!

Any ideas?

@enjalot
enjalot / _.md
Created January 22, 2013 18:24 — forked from zeffii/_.md
Pimp my Tribe (update2)
@enjalot
enjalot / _.md
Created January 18, 2013 23:50 — forked from poezn/_.md
Latest Tributary Inlets
@enjalot
enjalot / _.md
Last active December 11, 2015 07:49 — forked from erikhazzard/_.md
Tributary Inlet Leaderboard With more stats
@enjalot
enjalot / _.md
Created January 18, 2013 21:57 — forked from zeffii/_.md
Pimp my Tribe
@enjalot
enjalot / _.md
Created January 18, 2013 01:41 — forked from poezn/_.md
Toggle Switch
@enjalot
enjalot / _.md
Last active December 11, 2015 06:19 — forked from zeffii/_.md
Pimp my Tribe
@enjalot
enjalot / _.md
Created January 16, 2013 07:33 — forked from anonymous/config.json
An inlet to Tributary
@enjalot
enjalot / _.md
Created January 15, 2013 23:26 — forked from roundrobin/_.md
delta: play it