Skip to content

Instantly share code, notes, and snippets.

View mejackreed's full-sized avatar
🐧

Jack Reed mejackreed

🐧
View GitHub Profile
@mejackreed
mejackreed / .gitignore
Last active January 4, 2022 23:16 — forked from camillevilla/From the Page manifest fetch
From the Page manifest fetchin'
files/**
@mejackreed
mejackreed / .block
Last active September 14, 2018 15:37
Stanford Spatial Data Infrastructure WFS and WMS requests
license - MIT
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Add a WMS source</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.46.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.46.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Add a WMS source</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.46.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.46.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
var map;
map = L.map('map', {
center: [0, 0],
crs: L.CRS.Simple,
zoom: 0
});
var handle = document.getElementById('handle'),
start = false,
test1-a
test1-b
test2-a
test2-b
@mejackreed
mejackreed / index.html
Created April 3, 2018 17:04
Leaflet-IIIF Fractional Zoom Test
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://unpkg.com/[email protected]/leaflet-iiif.js"></script>
</head>
<body>
@mejackreed
mejackreed / DSC00321.JPG
Last active September 18, 2017 10:50
Camera Obscura
DSC00321.JPG
<img src="https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/1015,1460,799,824/pct:25/0/default.jpg">