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 / .DS_Store
Last active September 1, 2016 01:23
geocoder api - null results s air worldwide
@ryanbaumann
ryanbaumann / index.html
Last active February 3, 2023 08:05
Example of loading large geojson into Mapbox GL JS
<!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/v2.6.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v2.6.0/mapbox-gl.css' rel='stylesheet' />
<link href='https://www.mapbox.com/base/latest/base.css' rel='stylesheet' />
@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