Skip to content

Instantly share code, notes, and snippets.

View reyemtm's full-sized avatar
🎯
Focusing

Malcolm Meyer reyemtm

🎯
Focusing
View GitHub Profile
@reyemtm
reyemtm / gist:21ee0911f58361a5523efeb7ce92cfb4
Created March 14, 2018 14:46
Ohio County Codes JSON Array
{
"1":"Adams",
"3":"Allen",
"5":"Ashland",
"7":"Ashtabula",
"9":"Athens",
"11":"Auglaize",
"13":"Belmont",
"15":"Brown",
"17":"Butler",
@reyemtm
reyemtm / counties.geojson
Last active June 21, 2018 16:14
Population Density US Counties
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reyemtm
reyemtm / index.html
Last active June 25, 2018 16:13
Mapbox Feature State Test
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Feature State Testing</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>
@reyemtm
reyemtm / counties.geojson
Created July 6, 2018 19:30
Mapbox Feature State GeoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reyemtm
reyemtm / data.json
Last active July 6, 2018 19:33
Mapbox Feature State GeoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reyemtm
reyemtm / index.html
Last active June 12, 2019 18:07
Turf Trace
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Trace Network</title>
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.51.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.51.0/mapbox-gl.css' rel='stylesheet' />
@reyemtm
reyemtm / index.html
Last active November 26, 2019 13:01
County Parcel Viewer 15MB GeoJSON (3MB Zipped) - Mapbox GL JS Version with geojson-vt 3.0
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>County Parcel Viewer | Mapbox GL JS</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.43.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.43.0/mapbox-gl.css' rel='stylesheet' />
@reyemtm
reyemtm / index.html
Last active November 26, 2019 13:02
County Parcel Viewer 15MB GeoJSON (3MB Zipped) - Mapbox GL JS Version
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>County Parcel Viewer | Mapbox GL JS</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.mapbox.com/mapbox-gl-js/v0.40.1/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v0.40.1/mapbox-gl.css' rel='stylesheet' />
@reyemtm
reyemtm / index.html
Last active November 26, 2019 13:03
County Parcel Viewer | Leaflet Vector Grid
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>County Parcel Viewer | Leaflet Vector Grid</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.js"></script>
@reyemtm
reyemtm / combine-shp.js
Last active March 12, 2020 13:51
mergeNamedShapefilesToGeoJSON
//MAP THROUGH ALL FILES TO GET AN ARRAY OF SHAPEFILES TO CONVERT
//MAP THROUGH EACH FILE TO GET FEATURES AND PUSH TO MASTER, ADD FILENAME AS TYPE AND COLLECT FIELDS
//MAP THROUGH MASTER AND ADD MISSING FIELDS
var fs = require("fs");
var shapefile = require("shapefile");
var converted = {
type: "FeatureCollection",
features: []