Skip to content

Instantly share code, notes, and snippets.

View smit1678's full-sized avatar
💭
🇮🇩

Nate Smith smit1678

💭
🇮🇩
View GitHub Profile
@smit1678
smit1678 / wfp-map-embed
Created August 10, 2011 15:38
WFP Map Embed
<div id='ts-embed-1312990704256-script'><script src='http://tiles.mapbox.com/wfp-famine/api/v1/embed.js?api=mm&amp;size%5B%5D=600&amp;size%5B%5D=450&amp;center%5B%5D=48.120117187500085&amp;center%5B%5D=4.412136788910169&amp;center%5B%5D=5&amp;layers%5B%5D=mapbox.blue-marble-topo-jul-bw&amp;layers%5B%5D=famine-areas-current&amp;layers%5B%5D=famine-crisis-points&amp;layers%5B%5D=mapbox.world-borders-dark&amp;options%5B%5D=legend&amp;options%5B%5D=zoompan&amp;options%5B%5D=tooltips&amp;options%5B%5D=zoomwheel&amp;options%5B%5D=zoombox&amp;options%5B%5D=attribution&amp;el=ts-embed-1312990704256'></script></div>
Example converting WGS84 to web mercator:
gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3785 ea4411.tif hoa-tempsmooth.tif
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name=$inputline
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url=$inputline
@smit1678
smit1678 / index.html
Last active December 17, 2015 01:39 — forked from bsudekum/index.html
<!--Example for: http://mapbox.com//blog/vector-tile-sandwich/-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<html>
<head>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.0/mapbox.css' rel='stylesheet' />
@smit1678
smit1678 / index.html
Last active December 17, 2015 01:39
simple malaria map
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.ie.css' rel='stylesheet' >
<![endif]-->
<style>
body { margin:0; padding:0; }
@smit1678
smit1678 / index.html
Last active December 17, 2015 11:09
Global Access Map
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.ie.css' rel='stylesheet' >
<![endif]-->
<style>
body { margin:0; padding:0; }
@smit1678
smit1678 / maplist.geojson
Created July 25, 2013 19:50
Eastern Shore
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.ie.css' rel='stylesheet' >
<![endif]-->
<style>
body { margin:0; padding:0; }
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.ie.css' rel='stylesheet' >
<![endif]-->
<style>
@smit1678
smit1678 / index.html
Created August 9, 2013 13:29
via:geojson.io
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
.marker-properties {
border-collapse:collapse;