Skip to content

Instantly share code, notes, and snippets.

@elipousson
Last active November 30, 2015 21:04
Show Gist options
  • Save elipousson/ec22b987c7b2cfad955e to your computer and use it in GitHub Desktop.
Save elipousson/ec22b987c7b2cfad955e to your computer and use it in GitHub Desktop.
Confederate Monuments in Wyman Park Dell and Charles Village: Tour and Discussion (December 5, 2015 – Baltimore Heritage)
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Tour Map &middot; Confederate Monuments in Wyman Park Dell and Charles Village</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.mapbox.com/mapbox.js/v2.2.1/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.2.1/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<div id='map'></div>
<!-- jQuery is required for this example. -->
<script src='https://code.jquery.com/jquery-1.11.0.min.js'></script>
<script>
L.mapbox.accessToken = 'pk.eyJ1IjoiYmFsdGltb3JlaGVyaXRhZ2UiLCJhIjoiYWYwYjRkZTI3NjBkMmM0MjA2YjcxYWE3MzI2NmRmYmYifQ.9DwCW0w7rlxljgOi0IbD1A';
var url = 'wyman-park-dell-confederate-memory.geojson';
var map = L.mapbox.map('map', 'mapbox.streets', {
legendControl: {
position: 'bottomright'
}
}).setView([39.327625, -76.617665], 15);
function load() {
// Fetch just the contents of a .geojson file from GitHub by passing
// `application/vnd.github.v3.raw` to the Accept header
// As with any other AJAX request, this technique is subject to the Same Origin Policy:
// http://en.wikipedia.org/wiki/Same_origin_policy the server delivering the request should support CORS.
$.ajax({
headers: {
'Accept': 'application/vnd.github.v3.raw'
},
xhrFields: {
withCredentials: false
},
dataType: 'json',
url: url,
success: function(geojson) {
// On success add fetched data to the map.
L.mapbox.featureLayer(geojson).addTo(map);
}
});
}
$(load);
map.touchZoom.disable();
map.scrollWheelZoom.disable();
</script>
</body>
</html>
Display the source blob
Display the rendered blob
Raw
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"marker-color": "#021eaa",
"marker-size": "medium",
"marker-symbol": "monument",
"title": "Union Soldier's and Sailors Monument (1909, 1959)"
},
"geometry": {
"type": "Point",
"coordinates": [
-76.61781013011932,
39.323442364473294
]
}
},
{
"type": "Feature",
"properties": {
"marker-color": "#ab1500",
"marker-size": "medium",
"marker-symbol": "monument",
"title": "Robert E. Lee-Stonewall Jackson Statue (1948)"
},
"geometry": {
"type": "Point",
"coordinates": [
-76.61983251571655,
39.3243636166392
]
}
},
{
"type": "Feature",
"properties": {
"marker-color": "#ab1500",
"marker-size": "medium",
"marker-symbol": "monument",
"title": "Confederate Women's Monument (1916)"
},
"geometry": {
"type": "Point",
"coordinates": [
-76.6183465719223,
39.33328917477557
]
}
},
{
"type": "Feature",
"properties": {
"marker-color": "#000000",
"marker-size": "medium",
"marker-symbol": "monument",
"title": "Sidney Lanier Monument (1942)"
},
"geometry": {
"type": "Point",
"coordinates": [
-76.61811858415604,
39.33122697825894
]
}
},
{
"type": "Feature",
"properties": {
"stroke": "#0080ff",
"stroke-width": 3,
"stroke-opacity": 1,
"title": "Walking Tour Route"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-76.6176974773407,
39.32358345793424
],
[
-76.61756873130798,
39.323811696753786
],
[
-76.61785304546356,
39.328177139534965
],
[
-76.61746144294739,
39.32817299000392
],
[
-76.6176974773407,
39.33223111373764
],
[
-76.61783158779144,
39.33230580092435
],
[
-76.61783427000046,
39.33269168345141
],
[
-76.6180408000946,
39.332878400038695
],
[
-76.61836266517639,
39.33327672709172
],
[
-76.61806225776672,
39.3328286089975
],
[
-76.61815881729126,
39.332554757637205
],
[
-76.61796569824219,
39.33112739378916
],
[
-76.61827683448792,
39.33113569250037
],
[
-76.61819100379944,
39.33044689611643
],
[
-76.61874890327454,
39.33004025410215
],
[
-76.61980032920836,
39.32929335444608
],
[
-76.62036895751953,
39.32926015872064
],
[
-76.620272397995,
39.327343078844756
],
[
-76.62007927894592,
39.32735137800509
],
[
-76.6200041770935,
39.32627247890229
],
[
-76.62065863609314,
39.325932207271244
],
[
-76.62102341651917,
39.32555043712913
],
[
-76.62080883979797,
39.325276557265134
],
[
-76.62078738212584,
39.32490308299489
],
[
-76.62034749984741,
39.32464579955966
],
[
-76.61993980407713,
39.324770291662645
],
[
-76.61974668502808,
39.32464579955966
]
]
}
},
{
"type": "Feature",
"properties": {
"marker-color": "#000000",
"marker-size": "medium",
"marker-symbol": "monument",
"title": "Johns Hopkins Monument (1935, 1955)"
},
"geometry": {
"type": "Point",
"coordinates": [
-76.61797374486923,
39.328067176878925
]
}
},
{
"type": "Feature",
"properties": {
"marker-color": "#000000",
"marker-size": "medium",
"marker-symbol": "museum",
"title": "Baltimore Museum of Art (1929)"
},
"geometry": {
"type": "Point",
"coordinates": [
-76.61945700645445,
39.32560853271997
]
}
},
{
"type": "Feature",
"properties": {
"marker-color": "#000000",
"marker-size": "medium",
"marker-symbol": "religious-christian",
"title": "Homewood Friends Meeting"
},
"geometry": {
"type": "Point",
"coordinates": [
-76.6171932220459,
39.32634717245337
]
}
},
{
"type": "Feature",
"properties": {
"marker-color": "#000000",
"marker-size": "medium",
"marker-symbol": "college",
"title": "Shriver Hall, Johns Hopkins University (1954)"
},
"geometry": {
"type": "Point",
"coordinates": [
-76.620272397995,
39.326438464463024
]
}
},
{
"type": "Feature",
"properties": {
"marker-color": "#000000",
"marker-size": "medium",
"marker-symbol": "museum",
"title": "Homewood House (1801)"
},
"geometry": {
"type": "Point",
"coordinates": [
-76.61894202232361,
39.32970829968434
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment