Skip to content

Instantly share code, notes, and snippets.

View maptastik's full-sized avatar

Ryan Cooper maptastik

View GitHub Profile
@maptastik
maptastik / app.js
Created November 18, 2015 00:13
test
// Initialize TabletopJS
// This waits for the document to load
// then it calls the function containing everything connected to our spreadsheet
// In this case, this callback is called showInfo
document.addEventListener('DOMContentLoaded', function() {
var gData
var URL = "13Xd93PIiGvGh2JQ6uygnsUTTLAlJu7F7TE-doTy-5OY"
Tabletop.init({
key: URL,
callback: showInfo,
@maptastik
maptastik / README.md
Created December 11, 2015 21:15
An aRanger arrangment.

An arrangement of items made through aRanger.

@maptastik
maptastik / README.md
Last active December 12, 2015 04:30
An aRanger arrangment.

An arrangement of Kentucky counties made through aRanger.

@maptastik
maptastik / README.md
Created December 31, 2015 06:16
Acetate Alternative?

Access to the wonderful Acetate tileset was lost when ESRI shut down GeoIQ. There are a few ways one might deal with this

  1. Host your own version of Acetate using the stylesheets, data, and instructions in the Acetate repo on GitHub (link)
  2. Try to recreate it using something like Mapbox Studio.
  3. Run another tileset through a tile filter like TileLayer.Grayscale.js

This map demonstrates the third option. In this map, MapQuest's tiles are run through TileLayer.Grayscale.js to create a grayscale version of their tiles. A variety of tilesets can be found on Leaflet-providers preview.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maptastik
maptastik / data-cleaning.md
Created April 19, 2016 04:11
Open Refine Stuff

Some Google Refine snippets and resources to help with cleaning PVA data

Google Refine recipes

Re-add the leading 0 to the 7-digit property numbers

  1. Numeric facet on propertyand filter for 7-digit values only
  2. Run a transform on the faceted property data. Concatenate a 0 to the front of the 7-digit values
    • '0' + value
  3. Remove the facet.
@maptastik
maptastik / README.md
Created April 25, 2016 13:48
Querying ArcGIS services with shapefile-ags

The basic syntax for downloading a service as a shapefile using shapefile-ags is:

shapefile-ags <map_service_layer_url>

The default output .zip is named shapefile.zip. There is an option to rename the output:

shapefile-ags  --file-name='some_name.zip'
@maptastik
maptastik / README.md
Last active April 25, 2016 19:34
Workflow for downloading data from ArcGIS service and preparing for work with Mapbox services

#Preparing data from an ArcGIS REST Service for Use with Mapbox Services

##Situation##

We want to make a simple web map or static map of Graves Rd in Scott County using Mapbox services. We don't want to open GIS software because that takes forever. This workflow generally describes how we can access data from an ArcGIS REST service and process it for use with Mapbox.

##What we'll be using:##