Skip to content

Instantly share code, notes, and snippets.

View maptastik's full-sized avatar

Ryan Cooper maptastik

View GitHub Profile
@maptastik
maptastik / 4hksq0i0.ldo.txt
Last active August 29, 2015 14:25
BCC Routes
[user]
name = maptastik
email = ryancooper729@gmail.com
[core]
autocrlf = input
safecrlf = false
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true
@maptastik
maptastik / app.js
Created August 1, 2015 02:17
Lexington Parcels - Tilemill Method
// Mapbox access token. You'll want to use your own
L.mapbox.accessToken = 'pk.eyJ1IjoibWFwdGFzdGlrIiwiYSI6IjNPMkREV1kifQ.2KGPFZD0QaGfvYzXYotTXQ';
// Initialize the map, set the minimum and maximum zoom, and specify starting zoom and center
var map = L.map('map', {
minZoom: 11,
maxZoom: 16
}).setView([38.046441, -84.497019], 11);
// Add Stamen Toner basemap
@maptastik
maptastik / README.md
Created August 2, 2015 21:57
Lexington Parcels - Vector Tiles w/ Mapbox Studio

I'm sure there are more effective ways of doing this...

@maptastik
maptastik / index.html
Last active August 29, 2015 14:27
500-502 E 3rd Street Before and After
<!DOCTYPE html>
<html>
<head>
<title>500-502 E 3rd Street Collapse - Juxtaposition</title>
</head>
<body>
<!-- Begin JuxtaposeJS div -->
<div class="juxtapose" data-startingposition="50" data-showlabels="true" data-showcredits="true" data-animate="true">
<!-- Left image -->
@maptastik
maptastik / README.md
Last active September 4, 2015 20:30
Using Imagery from ArcGIS REST WMTS

For using LFUCG 2013 aerial imagery in OSM iD Editor

  1. http://gis.lexingtonky.gov/lfucggis/rest/services/aerial2013/ImageServer
  2. Click WMTS
  3. Under <TileMatrixSetLink> get the base URL template, http://gis.lexingtonky.gov/lfucggis/rest/services/aerial2013/ImageServer/WMTS/tile/1.0.0/aerial2013/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}
  4. {Style} = default, {TileMatrixSet} = default028mm, {TileMatrix} = a number 0-9 (likely 9 because it's the clearest zoomed in), {TileRow} = {y}, {TileCol} = {x}

Other LFUCG REST services: http://gis.lexingtonky.gov/lfucggis/rest/services

@maptastik
maptastik / index.html
Created September 5, 2015 05:43
Commonwealth Stadium - Alternative Configuration, 1973 map w/ slider
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Commonwealth Stadium - Alternative Configuration, 1973</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@maptastik
maptastik / README.md
Created September 10, 2015 18:30
Add a layer to QGIS from an ArcGIS REST service
  1. Go to a REST service page and pick a layer
  1. Copy the URI
  2. In QGIS, click Add Vector Layer
  3. In the dialog box, select the Protocol option.
  4. Paste the service URI into the URI field
  5. To the end of the the URI paste query?where=objectid+%3D+objectid&outfields=*&f=json
  6. Click Open

This method works best for services with <1000 features.

@maptastik
maptastik / README.md
Last active September 18, 2015 15:33
Linkify your URLs!

Regular link

<a href="URL GOES HERE">Let's go to a new page!</a>

So <a href="http://maptime.io/lexington/">maptimeLEX!</a> becomes maptimeLEX!

Link that opens in a new tab!

<a href="URL GOES HERE" target="_blank">Let's go to a new page in a new tab!</a>

@maptastik
maptastik / grapi.geojson
Created September 28, 2015 19:12
grapi-data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maptastik
maptastik / index.html
Last active September 28, 2015 19:14
LEX GRAPI
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Percentage of population w/ GRAPI >30%</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src="http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/calvinmetcalf/leaflet-ajax/gh-pages/dist/leaflet.ajax.min.js"></script>
<!-- <script type="text/javascript" src="leaflet.ajax.min.js"></script> -->
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.css" />