Skip to content

Instantly share code, notes, and snippets.

View maptastik's full-sized avatar

Ryan Cooper maptastik

View GitHub Profile
@maptastik
maptastik / README.md
Last active August 29, 2015 14:24
Bluegrass 10,000 Results - 2015
@maptastik
maptastik / README.md
Last active August 29, 2015 14:24
Map of 2015 Bluegrass 10,000 participants by hometown made using CartoDB and CartoDB.js

This map was made using CartoDB and CartoDB.js. Data were extracted from Chronotrack and compiled as a CSV. Counts for each town were derived in Google Sheets. The locations were then geocoded and cleaned further in CartoDB.

@maptastik
maptastik / index.html
Last active August 29, 2015 14:24
My first Mapsense
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="http://d3js.org/topojson.v1.min.js" charset="utf-8"></script>
<script src="https://developer.mapsense.co/mapsense.js" charset="utf-8"></script>
<link type="text/css" href="https://developer.mapsense.co/mapsense.css" rel="stylesheet"/>
@maptastik
maptastik / README.md
Created July 10, 2015 14:03
Basic web project boilerplate
@maptastik
maptastik / README.md
Last active August 29, 2015 14:24
My first ArcGIS API for JavaScript map
@maptastik
maptastik / local-serve.bat
Created July 12, 2015 02:22
Run Python simple server
ECHO OFF
ECHO Starting SimpleHTTPServer
python -m SimpleHTTPServer
@maptastik
maptastik / runs.geojson
Created July 13, 2015 01:26
Gist of runs in Lexington, 12/2013- 7/11/15
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maptastik
maptastik / README.md
Last active August 29, 2015 14:24
Esri-Leaflet with feature service and clicky popup
@maptastik
maptastik / README.md
Last active August 29, 2015 14:24
Querying a related table in a feature service using Esri-Leaflet & Esri-Leaflet-Related

Just some experimentation with Esri-Leaflet. Basically, we have a feature service for our parcel data that is split into two layers: geometry and attribute data. The attribute data is a related table. Natively, Esri-Leaflet doesn't query data from a related table. Luckily Esri-Leaflet-Related exists. It's in beta and uses a release candidate build (I think that's the term) of Esri-Leaflet 1.0.0, but I was able to use it to pull data from the related attribute table and make it so that when the user hovers over a parcel (geometry), an info pane shows the parcel's address (related attribute table). When the user clicks, a table appears with more info about the parcel (related attribute table).

@maptastik
maptastik / error
Last active August 29, 2015 14:25
Troubleshooting errors while trying to install pip
PS C:\Python27\ArcGIS10.2\Lib\site-packages> python get-pip.py
Traceback (most recent call last):
File "get-pip.py", line 20204, in <module>
main()
File "get-pip.py", line 152, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
import pip
File "c:\users\ryanco~1\appdata\local\temp\tmpbwqs3j\pip.zip\pip\__init__.py", line 13, in <module>
File "c:\users\ryanco~1\appdata\local\temp\tmpbwqs3j\pip.zip\pip\utils\__init__.py", line 22, in <module>