Skip to content

Instantly share code, notes, and snippets.

View wboykinm's full-sized avatar

Bill Morris wboykinm

View GitHub Profile
@wboykinm
wboykinm / geocoder.js
Created July 6, 2011 16:31
A javascript geocoder piggybacked on the GeoDjango Admin Project
{% block extrastyle %}
<style type="text/css">
#{{ id }}_map { width: {{ map_width }}px; height: {{ map_height }}px; }
#{{ id }}_map .aligned label { float:inherit; }
#{{ id }}_admin_map { position: relative; vertical-align: top; float: {{ LANGUAGE_BIDI|yesno:"right,left" }}; }
{% if not display_wkt %}#{{ id }} { display: none; }{% endif %}
.olControlEditingToolbar .olControlModifyFeatureItemActive {
background-image: url("{{ ADMIN_MEDIA_PREFIX }}img/gis/move_vertex_on.png");
background-repeat: no-repeat;
}
@wboykinm
wboykinm / Farmfiletool.js
Created July 26, 2011 20:20
Interface for farm mapping
// Created by MSSB consulting
// JavaScript Document
function obj_mapObject(){
this.latLng = new Array();
}
function obj_xmlEntity(){
@wboykinm
wboykinm / OL_KML_Django
Created September 13, 2011 16:28
Map Function with GeoDjango and KML Layers
function init() {
map = new OpenLayers.Map("map", {'theme': null});
var gmap = new OpenLayers.Layer.GoogleNG({type: google.maps.MapTypeId.HYBRID});
var sheds = new OpenLayers.Layer.Vector("KML", {
projection: map.displayProjection,
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "http://www.geosprocket.com/files/vthuc12a.kml",
format: new OpenLayers.Format.KML({
extractStyles: true,
@wboykinm
wboykinm / mmfeatures_btv
Created October 10, 2011 20:35
MM Feature Debugger
<!DOCTYPE html>
<html>
<head>
<script src='http://www.geosprocket.com/mapbox-wax/ext/modestmaps.min.js' type='text/javascript'></script>
<script src='http://www.geosprocket.com/mapbox-wax/dist/wax.mm.js' type='text/javascript'></script>
<link href='http://www.geosprocket.com/mapbox-wax/theme/controls.css' rel='stylesheet' type='text/css' />
</head>
<body>
@wboykinm
wboykinm / gls.html
Created October 29, 2011 01:35
MultiLayer Wax.G Switcher
<html>
<head>
<title>Wax.G Layer Switcher</title>
<script src='http://maps.google.com/maps/api/js?sensor=false' type='text/javascript'></script>
<script src='http://www.geosprocket.com/mapbox-wax/dist/wax.g.js' type='text/javascript'></script>
<script src='http://code.jquery.com/jquery-1.6.4.min.js' type='text/javascript'></script>
<link href='http://www.geosprocket.com/css/basic.css' rel='stylesheet' type='text/css' />
@wboykinm
wboykinm / log_010912
Created January 10, 2012 14:54
wboykinm - ~/.tilemill.log
Creating files dir /home/wboykinm/Documents/MapBox
Creating export dir /home/wboykinm/Documents/MapBox/export
Creating project dir /home/wboykinm/Documents/MapBox/project
Creating data dir /home/wboykinm/Documents/MapBox/data
Creating cache dir /home/wboykinm/Documents/MapBox/cache
Creating cache/tile dir /home/wboykinm/Documents/MapBox/cache/tile
Started [Server Core:8889].
Started [Server Core:8889].
Started [Server Core:8889].
Client Error: Uncaught TypeError: Cannot read property '1' of undefined
@wboykinm
wboykinm / honeuro.mml
Created January 11, 2012 18:07
Euro Project Doc
{
"bounds": [
-180,
-85.05112877980659,
180,
85.05112877980659
],
"center": [
11.623535156250009,
43.96909818325171,
@wboykinm
wboykinm / dodeuro.mss
Created January 11, 2012 23:00
Carto error unknown
Map {
/*background-color: #b8dee6;*/
}
/*#countries {
::outline {
line-color: #85c5d3;
line-width: 2;
line-join: round;
}
@wboykinm
wboykinm / tm_crash_011312
Created January 13, 2012 16:14
tilemill crash log
wboykinm@ballinrobe:~/Documents/MapBox/project$ tail -1000 ~/.tilemill.log
Creating files dir /home/wboykinm/Documents/MapBox
Creating export dir /home/wboykinm/Documents/MapBox/export
Creating project dir /home/wboykinm/Documents/MapBox/project
Creating data dir /home/wboykinm/Documents/MapBox/data
Creating cache dir /home/wboykinm/Documents/MapBox/cache
Creating cache/tile dir /home/wboykinm/Documents/MapBox/cache/tile
Started [Server Core:8889].
Started [Server Core:8889].
Started [Server Core:8889].
@wboykinm
wboykinm / mapniknodedev
Created January 14, 2012 17:09
Adding mapnik and node dev libraries
wboykinm@ballinrobe:~$ sudo apt-get install libmapnik-dev nodejs-dev
[sudo] password for wboykinm:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libqgis1.7.1 python-numeric
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
gccxml libboost-date-time1.46-dev libboost-date-time1.46.1 libboost-filesystem-dev