Skip to content

Instantly share code, notes, and snippets.

View vicapow's full-sized avatar

Victor vicapow

View GitHub Profile
@vicapow
vicapow / react-map-gl-tasks.md
Created December 11, 2015 02:12
What needs love in react-map-gl "ecosystem

Let me know if you have any questions or need clarification! Any questions you have will help us shape the library and/or fix the docs :P

Style diffing is (sometimes) broken in the precense of refs

Make resizing syncronous (instead of async)

better documentation - visgl/react-map-gl#22

'use strict';
function asyncTask(data, callback) {
process.setTimeout(function process() {
return callback(null, 'processed ' + data);
}, 100);
}
function doLotsOfStuff(callback) {
var tasks = ['task1', 'task2', 'task3'];
'use strict';
function asyncTask(data, callback) {
process.setTimeout(function process() {
return callback(null, 'processed ' + data);
}, 100);
}
function doLotsOfStuff(callback) {
var tasks = ['task1', 'task2', 'task3'];
@vicapow
vicapow / README.md
Last active December 2, 2015 08:44
react-map-gl version 0.6 proposed API changes

New overlay API

Old way

<MapGL {...viewport}>
  // props like `project` and `unproject` and viewport props like `zoom` used
  // to be passed transparently.
  <Overlay locations={locations} />
@vicapow
vicapow / split-double.js
Created November 28, 2015 21:27
split a double into two floats, hi and low
function splitDouble(value) {
var hi = Float32Array.from([value])[0];
var low = value - hi;
return [hi, low];
}
@vicapow
vicapow / README.md
Created November 8, 2015 23:42
Projection Transitions
@vicapow
vicapow / README.md
Created October 22, 2015 05:33
fresh block
@vicapow
vicapow / README.md
Created October 22, 2015 05:32
fresh block
@vicapow
vicapow / README.md
Created October 22, 2015 05:22
fresh block
@vicapow
vicapow / README.md
Last active October 22, 2015 05:22
fresh block