RVS / Pittsburgh_map.html
tzufi's picture
Upload 3 files
2b37968 verified
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script>
L_NO_TOUCH = false;
L_DISABLE_3D = false;
</script>
<style>html, body {width: 100%;height: 100%;margin: 0;padding: 0;}</style>
<style>#map {position:absolute;top:0;bottom:0;right:0;left:0;}</style>
<script src="https://cdn.jsdelivr.net/npm/leaflet@1.9.3/dist/leaflet.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet@1.9.3/dist/leaflet.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.2.0/css/all.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/python-visualization/folium/folium/templates/leaflet.awesome.rotate.min.css"/>
<meta name="viewport" content="width=device-width,
initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
#map_164eb6bb2e7846ef3e8fae144272b3ef {
position: relative;
width: 100.0%;
height: 100.0%;
left: 0.0%;
top: 0.0%;
}
.leaflet-container { font-size: 1rem; }
</style>
</head>
<body>
<div class="folium-map" id="map_164eb6bb2e7846ef3e8fae144272b3ef" ></div>
</body>
<script>
var map_164eb6bb2e7846ef3e8fae144272b3ef = L.map(
"map_164eb6bb2e7846ef3e8fae144272b3ef",
{
center: [40.4407, -79.9806],
crs: L.CRS.EPSG3857,
zoom: 12,
zoomControl: true,
preferCanvas: false,
}
);
var tile_layer_e932b13a9715f57a12926d182b642e5a = L.tileLayer(
"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
{"attribution": "Data by \u0026copy; \u003ca target=\"_blank\" href=\"http://openstreetmap.org\"\u003eOpenStreetMap\u003c/a\u003e, under \u003ca target=\"_blank\" href=\"http://www.openstreetmap.org/copyright\"\u003eODbL\u003c/a\u003e.", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
).addTo(map_164eb6bb2e7846ef3e8fae144272b3ef);
function geo_json_c42578f27a07ed3677475cad7f9c98ba_styler(feature) {
switch(feature.id) {
default:
return {"color": "red"};
}
}
function geo_json_c42578f27a07ed3677475cad7f9c98ba_onEachFeature(feature, layer) {
layer.on({
});
};
var geo_json_c42578f27a07ed3677475cad7f9c98ba = L.geoJson(null, {
onEachFeature: geo_json_c42578f27a07ed3677475cad7f9c98ba_onEachFeature,
style: geo_json_c42578f27a07ed3677475cad7f9c98ba_styler,
});
function geo_json_c42578f27a07ed3677475cad7f9c98ba_add (data) {
geo_json_c42578f27a07ed3677475cad7f9c98ba
.addData(data)
.addTo(map_164eb6bb2e7846ef3e8fae144272b3ef);
}
geo_json_c42578f27a07ed3677475cad7f9c98ba_add({"bbox": [-80.035, 40.425, -79.93, 40.46], "features": [{"bbox": [-80.035, 40.425, -79.93, 40.46], "geometry": {"coordinates": [[[-79.93, 40.425], [-79.93, 40.46], [-80.035, 40.46], [-80.035, 40.425], [-79.93, 40.425]]], "type": "Polygon"}, "id": "0", "properties": {}, "type": "Feature"}], "type": "FeatureCollection"});
</script>
</html>