Skip to content

Instantly share code, notes, and snippets.

@lxbarth
lxbarth / index.html
Last active October 15, 2015 19:27
Load a geojson file from Github.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Strava style comparison</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.css' rel='stylesheet' />
<script src='https://api.mapbox.com/mapbox.js/plugins/leaflet-hash/v0.2.1/leaflet-hash.js'></script>
<style>
@lxbarth
lxbarth / index.html
Created April 30, 2015 18:44
Recommended Mapbox branding for sponsored maps
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>A simple map</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.9/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.9/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@lxbarth
lxbarth / index.html
Last active August 29, 2015 14:02
Standard attribution for Mapbox Streets and Mapbox Satellite.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Attribution</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.6/mapbox.js'></script>
<script src='https:////api.tiles.mapbox.com/mapbox.js/plugins/leaflet-hash/v0.2.1/leaflet-hash.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.6/mapbox.css' rel='stylesheet' />