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 / README.md
Last active February 16, 2016 22:18
Runkeeper Runs

My runs in Lexington as logged by RunKeeper. GPX files of individual runs were downloaded from RunKeeper and tracks were consolidated into a single GPX file using GPS Babel. I converted the combined GPX file into GeoJSON using OGR2OGR via QGIS 2.8.1. I used MapboxJS to pull in CartoDB's Dark Matter tiles and to generally just set up the map. Finally, I used jQuery to pull in the runs.geojson.

Next steps include:

  • Add a class to each path (using D3js?)
  • Use that class and CSS to mess with the opacity blending on the paths (mix-blend-mode perhaps?)
  • Maybe do this with Mapsense...It'd just be nice to be able to use CSS a little more naturally
  • Also, let's add some title text with cool neoness!
  • It might also be cool to buffer the paths, dissolve into a single polygon and toss that through [TileLayer.bound
@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).