Skip to content

Instantly share code, notes, and snippets.

View wboykinm's full-sized avatar

Bill Morris wboykinm

View GitHub Profile
@wboykinm
wboykinm / map1.js
Created August 21, 2012 19:32
map template full tooltip adaptation
(function(root) {
var Map = {},
layers;
Map = function(el, l, callback) {
wax.tilejson(l.api, function(t) {
var handlers = [
new MM.DragHandler(),
new MM.DoubleClickHandler(),
new MM.TouchHandler()
@wboykinm
wboykinm / timeline.html
Created August 23, 2012 01:01
timeline for mapbox.js
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.4/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.4/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
@wboykinm
wboykinm / WMBio.md
Created August 27, 2012 17:38
Biobiobio

Bill Morris is principal of GeoSprocket LLC, a multifaceted geospatial consulting firm. With over a decade of experience in geographic information science, remote sensing and cartography, he focuses on applying the strength of spatial relationships to real-world challenges in the areas of environmental resource conservation, agricultural management and international development.

@wboykinm
wboykinm / config.dist.xml
Created September 6, 2012 19:43
config-philly-demo
<DistrictBuilder>
<LegislativeBodies>
<LegislativeBody id="council" name="Philadelphia City Council" member="District %s" maxdistricts="10" sort_key="1"/>
<LegislativeBody id="community" name="Community Map" member="Community %s" maxdistricts="999" is_community="true" sort_key="2"/>
</LegislativeBodies>
<Subjects>
<Subject id="popbeo" field="P0040006" name="Total Black 18 and Over" short_name="Black VAP" displayed="false" sortkey="1"/>
<Subject id="popheo" field="P0040002" name="Total Hispanic or Latino 18 and Over" short_name="Hispanic or Latino VAP" displayed="false" sortkey="2"/>
<Subject id="popaeo" field="P0040008" name="Total Asian 18 and Over" short_name="Asian VAP" displayed="false" sortkey="3"/>
@wboykinm
wboykinm / edge-fade.mss
Created September 6, 2012 20:59
edge-fade
Map {
background-color: #ace;
}
#countries {
::outline {
line-color: #604860;
line-width: 2;
line-join: round;
}
@wboykinm
wboykinm / edgefadesubclass.mss
Created September 7, 2012 17:44
subclasses
/********BRACE YOURSELF - MANY LINES AHEAD********/
#countries[ADMIN="South Sudan"] {
::edge-fade {
line-cap:round;
line-join:round;
line-smooth:1;
line-color:white;
/********EDGE FADE SET 1********/
::glow1 {
@wboykinm
wboykinm / style.mss
Created September 7, 2012 19:05
A 30-Halo Edge Fade
Map {
background-color: #403958;
}
#countries {
::outline {
line-color: #5f6074;
line-width: 1;
line-join: round;
}
@wboykinm
wboykinm / style.mss
Created September 8, 2012 01:29
Buffalo Carto with Compositing
Map {
background-color: #403958;
}
#countries {
::outline {
line-color: #5f6074;
line-width: 1;
line-join: round;
line-comp-op:multiply;
@wboykinm
wboykinm / style.mss
Created September 10, 2012 13:54
Full buffalo tint effect using tilemill compositing
Map {
background-color: white;
}
#countries[ADMIN!='South Sudan'] {
polygon-fill:#d7cebf;
comp-op:dst-in;
image-filters:agg-stack-blur(100,100);
}
@wboykinm
wboykinm / style.mss
Created September 10, 2012 18:43
Full buffalo tint effect using tilemill compositing - w/ preprocessed feature mask
Map {
background-color: white;
}
#ssbuf3 {
comp-op:dst-in;
image-filters:agg-stack-blur(100,100);
polygon-clip:false;
}