View force-yarn.js
// @flow
/* global process */
/* eslint-disable no-process-env */
const { execSync } = require('child_process');
const packageJson = require('../../package');
const execpath = process.env && process.env.npm_execpath;
if (execpath) {
if (!execpath.includes('yarn')) {
View feature-collection.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View geos-voronoi-in-js.c
/*
To compile:
first, get a version of geos and put it in `geos` relative path. then...
cd geos
emconfigure ./configure
emmake make
cd ..
emcc \
-s EXPORTED_FUNCTIONS='["_get_voronoi"]' \
View example3-helloworld.s
## 'Hello world!' in x86_64 AT&T gas assembly in OS X.
## To assemble $> as -arch x86_64 example3-helloworld.s -o example3-helloworld.o
## To link: $> ld -arch x86_64 example3-helloworld.o -e _main -o example3-helloworld -lSystem
.section __TEXT,__text
.macosx_version_min 10, 12
.globl _main
_main:
movq $0x2000004, %rax # write (system call $4 with $0x2000000 offset)
movq $1, %rdi # write to stdout (fid 1)
leaq L_.str(%rip), %rsi # set the register address of the start of the string
View react-map-gl-tasks.md
View react-map-gl-tasks.md
View parallel-async.js
'use strict';
function asyncTask(data, callback) {
process.setTimeout(function process() {
return callback(null, 'processed ' + data);
}, 100);
}
function doLotsOfStuff(callback) {
var tasks = ['task1', 'task2', 'task3'];
View series-async.js
'use strict';
function asyncTask(data, callback) {
process.setTimeout(function process() {
return callback(null, 'processed ' + data);
}, 100);
}
function doLotsOfStuff(callback) {
var tasks = ['task1', 'task2', 'task3'];
View README.md

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} />
</MapGL>
View split-double.js
function splitDouble(value) {
var hi = Float32Array.from([value])[0];
var low = value - hi;
return [hi, low];
}