This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |