Skip to content

Instantly share code, notes, and snippets.

View brightrain's full-sized avatar

David Puckett brightrain

View GitHub Profile
@brightrain
brightrain / dp-extents.geojson
Created August 24, 2021 18:34
all the wayout places
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brightrain
brightrain / esri-leaflet-identify-example.js
Created February 2, 2017 18:31
The function that is called on map click in the epa cwns map app
// this function is called on map click event
showEntities: function(latLng) {
try {
cwns.map.removeLayer(cwns.current.selectedGeoJson);
cwns.current.countyGroupLayer.clearLayers();
cwns.current.congDistGroupLayer.clearLayers();
cwns.current.stateGroupLayer.clearLayers();
cwns.mapMarker.setLatLng(latLng);
cwns.map.addLayer(cwns.mapMarker);
cwns.cwnsDynamicLayer.identify()
<!DOCTYPE html>
<html lang="en">
<head>
<title>One Minute Map</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://mapzen.com/js/mapzen.css">
<script src="https://mapzen.com/js/mapzen.min.js"></script>
<style>
#map {
height: 100%;
using System;
using System.Collections.Generic;
using System.Net;
using System.Web;
using System.IO;
using System.Text;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.DataSourcesGDB;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.Geometry;
@brightrain
brightrain / population-io-country-translator.json
Created April 22, 2016 00:03
Translator between population.io countries and the standard iso 2 character country code
[{"Country":"Falkland Islands","populationIoName":"NotFound","iso2Code":"FK"},{"Country":"French Guiana","populationIoName":"French Guiana","iso2Code":"GF"},{"Country":"Guyana","populationIoName":"Guyana","iso2Code":"GY"},{"Country":"Cyprus","populationIoName":"Cyprus","iso2Code":"CY"},{"Country":"Pitcairn","populationIoName":"NotFound","iso2Code":"PN"},{"Country":"South Georgia","populationIoName":"NotFound","iso2Code":"GS"},{"Country":"Saint Helena","populationIoName":"NotFound","iso2Code":"SH"},{"Country":"Egypt","populationIoName":"Arab Rep of Egypt","iso2Code":"EG"},{"Country":"Suriname","populationIoName":"Suriname","iso2Code":"SR"},{"Country":"Georgia","populationIoName":"Georgia","iso2Code":"GE"},{"Country":"Greece","populationIoName":"Greece","iso2Code":"GR"},{"Country":"Trinidad and Tobago","populationIoName":"Trinidad and Tobago","iso2Code":"TT"},{"Country":"Lebanon","populationIoName":"Lebanon","iso2Code":"LB"},{"Country":"Syria","populationIoName":"Syrian Arab Rep","iso2Code":"SY"},{"Country":"Ve
<!--grab it-->
<script src="js/geoutils.js" type="text/javascript"></script>
<script src="js/geoutils.js" type="text/javascript"></script>
@brightrain
brightrain / map.geojson
Created August 14, 2013 19:55
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brightrain
brightrain / index.html
Created August 7, 2013 19:54
via:geojson.io
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
.marker-properties {
border-collapse:collapse;
@brightrain
brightrain / typeahead-stype.css
Created February 11, 2015 01:25
typeahead style
.typeahead {
background-color: #FFFFFF;
}
.tt-dropdown-menu {
background-color: #FFFFFF;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 4px 4px 4px 4px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
margin-top: 4px;
padding: 4px 0;