This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<!--The viewport meta tag is used to improve the presentation and behavior of the samples | |
on iOS devices--> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> | |
<title>Map with WMS</title> | |
<link rel="stylesheet" href="http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "FeatureCollection", | |
"features": [...], | |
"legend": { | |
"title": "Population Quantiles", | |
"symbols": [ | |
{"from": 0, "to": 10, "color": "ffffff", "symbol": "square"}, | |
{"from": 10, "to": 50, "color": "cffff1", "symbol": "square"}, | |
{"from": 50, "to": 80, "color": "afff33", "symbol": "square"} | |
] |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var domify = require('domify') | |
var insertCSS = require('insert-css') | |
var d3 = require('d3') | |
var data = [4, 8, 15, 18, 23, 42, 10, 60, 30]; | |
var css = '' | |
var html = '<div id="chart">chart</div>' | |
insertCSS(css) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var domify = require('domify') | |
var html = "<canvas id='display' width='1' height='1' style='width: 100%; height: 100%;' />" | |
document.body.appendChild(domify(html)) | |
var CIRCLE = Math.PI * 2; | |
var MOBILE = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) | |
function Controls() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var domify = require('domify') | |
var html = "<canvas id='display' width='1' height='1' style='width: 100%; height: 100%;' />" | |
document.body.appendChild(domify(html)) | |
var CIRCLE = Math.PI * 2; | |
var MOBILE = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) | |
function Controls() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tin = require('turf-tin'); | |
var d3 = require('d3'); | |
var domify = require('domify'); | |
var point = require('turf-point'); | |
var inside = require('turf-inside'); | |
var planepoint = require('turf-planepoint'); | |
// setup | |
var html = '<div id="res">Elevation:</div>'; | |
document.body.appendChild(domify(html)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var domify = require('domify'); | |
var THREE = require('three') | |
var html = '<style>canvas { width: 100%; height: 100% }</style>' | |
var scene = new THREE.Scene(); | |
var camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000); | |
var renderer = new THREE.WebGLRenderer(); | |
renderer.setSize(window.innerWidth, window.innerHeight); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var domify = require('domify'); | |
var THREE = require('three') | |
var html = '<style>canvas { width: 100%; height: 100% }</style>' | |
var scene = new THREE.Scene(); | |
var camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000); | |
var renderer = new THREE.WebGLRenderer(); | |
renderer.setSize(window.innerWidth, window.innerHeight); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var line = require('test-linestring') | |
var d3 = require('d3') | |
var buffer = require('turf-buffer') | |
var lineBuffer = buffer(line, .1, 'miles') | |
d3.select('body') | |
.append('div') | |
.text(JSON.stringify(lineBuffer)) | |