Skip to content

Instantly share code, notes, and snippets.

View ryanbaumann's full-sized avatar
🤙
Innovative location experiences

Ryan Baumann ryanbaumann

🤙
Innovative location experiences
View GitHub Profile
// These two need to be declared outside the try/catch
// so that they can be closed in the finally block.
HttpURLConnection urlConnection = null;
BufferedReader reader = null;
// Will contain the raw JSON response as a string.
String forecastJsonStr = null;
try {
// Construct the URL for the OpenWeatherMap query
@ryanbaumann
ryanbaumann / index.html
Last active August 25, 2016 16:52 — forked from andrewharvey/index.html
Mapbox GL JS Marker Offset Example
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.22.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.22.1/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@ryanbaumann
ryanbaumann / index.html
Last active April 15, 2019 23:38 — forked from maning/index.html
San Francisco 3D Lidar Extrusions
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.54.0-beta.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.54.0-beta.1/mapbox-gl.css' rel='stylesheet' />
<style>
@ryanbaumann
ryanbaumann / README.md
Last active May 2, 2017 14:19 — forked from fxi/README.md
Drop multiple geojson files on a mapbox gl js map

Experimental work with mapbox gl js, web workers and geojsonhint to create new layers by drag and dropping geojson data.

@ryanbaumann
ryanbaumann / frame.html
Created January 25, 2018 19:30 — forked from szilardhuber/frame.html
Iframe worker url test
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="second-row">
I am an IFrame
</div>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ryanbaumann
ryanbaumann / .block
Created July 20, 2018 20:17 — forked from clhenrick/.block
ischool-geo-viz-04
license: mit
@ryanbaumann
ryanbaumann / index.html
Last active March 12, 2020 23:37 — forked from Pessimistress/index.html
Mapbox Custom Layers - Add a great-arc circle with brushing to a map with deck.gl
<html>
<head>
<title>US County-to-County Migration</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v1.8.1/mapbox-gl.js"></script>
<link rel="stylesheet" type="text/css" href="https://api.tiles.mapbox.com/mapbox-gl-js/v1.8.1/mapbox-gl.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.15.0/d3.min.js"></script>
<style type="text/css">
@ryanbaumann
ryanbaumann / index.html
Last active June 20, 2019 03:13 — forked from Pessimistress/index.html
Mapbox Custom Layers - Add a HexagonLayer to a map with deck.gl
<html>
<head>
<title>Road AccidentsIncidents</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v1.1.0-beta.1/mapbox-gl.js"></script>
<link rel="stylesheet" type="text/css" href="https://api.tiles.mapbox.com/mapbox-gl-js/v1.1.0-beta.1/mapbox-gl.css">
<script src="https://d3js.org/d3.v5.min.js"></script>
<style type="text/css">