Skip to content

Instantly share code, notes, and snippets.

Bill Morris wboykinm

View GitHub Profile
@wboykinm
wboykinm / geocoder.js
Created Jul 6, 2011
A javascript geocoder piggybacked on the GeoDjango Admin Project
View geocoder.js
{% 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 Jul 26, 2011
Interface for farm mapping
View Farmfiletool.js
// Created by MSSB consulting
// JavaScript Document
function obj_mapObject(){
this.latLng = new Array();
}
function obj_xmlEntity(){
@wboykinm
wboykinm / OL_KML_Django
Created Sep 13, 2011
Map Function with GeoDjango and KML Layers
View OL_KML_Django
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 Oct 10, 2011
MM Feature Debugger
View mmfeatures_btv
<!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 Oct 29, 2011
MultiLayer Wax.G Switcher
View gls.html
<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 Jan 10, 2012
wboykinm - ~/.tilemill.log
View log_010912
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 Jan 11, 2012
Euro Project Doc
View honeuro.mml
{
"bounds": [
-180,
-85.05112877980659,
180,
85.05112877980659
],
"center": [
11.623535156250009,
43.96909818325171,
@wboykinm
wboykinm / dodeuro.mss
Created Jan 11, 2012
Carto error unknown
View dodeuro.mss
Map {
/*background-color: #b8dee6;*/
}
/*#countries {
::outline {
line-color: #85c5d3;
line-width: 2;
line-join: round;
}
@wboykinm
wboykinm / tm_crash_011312
Created Jan 13, 2012
tilemill crash log
View tm_crash_011312
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 Jan 14, 2012
Adding mapnik and node dev libraries
View mapniknodedev
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
You can’t perform that action at this time.