Skip to content

Instantly share code, notes, and snippets.

View gagecarto's full-sized avatar

Josh Gage gagecarto

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.18.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.18.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.18.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.18.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@gagecarto
gagecarto / L.D3SvgOverlay.min.js
Last active March 25, 2016 19:03 — forked from xEviL/L.D3SvgOverlay.min.js
L.D3SvgOverlay: Leaflet + D3, simple example
/**
* Copyright 2015 Teralytics AG
*
* @author Kirill Zhuravlev <[email protected]>
*
*/
if(typeof d3=="undefined"){throw"D3 SVG Overlay for Leaflet requires D3 library loaded first"}if(typeof L=="undefined"){throw"D3 SVG Overlay for Leaflet requires Leaflet library loaded first"}if(L.version>="1.0"){d3.select("head").append("style").attr("type","text/css").text("g.d3-overlay *{pointer-events:visiblePainted;}")}L.D3SvgOverlay=(L.version<"1.0"?L.Class:L.Layer).extend({includes:L.version<"1.0"?L.Mixin.Events:[],_undef:function(a){return typeof a=="undefined"},_options:function(options){if(this._undef(options)){return this.options}options.zoomHide=this._undef(options.zoomHide)?false:options.zoomHide;options.zoomDraw=this._undef(options.zoomDraw)?true:options.zoomDraw;return this.options=options},_disableLeafletRounding:function(){this._leaflet_round=L.Point.prototype._round;L.Point.prototype._round=function(){return this}},_enableLeafletRounding:function(){L.Point.prototype._round=this._leaflet
This guide documents the steps I used to get OSM Bright successfully loaded in TileMill v.0.10.1 on Windows 7 Enterprise SP1
Required software:
Python (2.7 for me)
TileMill v.0.10.1 ( https://www.mapbox.com/tilemill/ )
OpenGeo Suite 4.0.1 (uses PostgreSQL 9.3rc1). OpenGeo suite isn't a hard requirement here. There are other ways to install postgres/PostGIS. This just seemed like the quickest and easiest way to get up and running. I installed to the default location and also installed Client Tools for PostGIS, pgAdmin and GDAL though these are likely not prerequisites. ( http://boundlessgeo.com/solutions/opengeo-suite/download/ ) Note: Name and e-mail registration is required to download.