RVS / Manhattan_map.html
tzufi's picture
Upload 3 files
2b37968 verified
raw
history blame
5.05 kB
<!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_04ebe21ccca45e4b7c56014a60851f02 {
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_04ebe21ccca45e4b7c56014a60851f02" ></div>
</body>
<script>
var map_04ebe21ccca45e4b7c56014a60851f02 = L.map(
"map_04ebe21ccca45e4b7c56014a60851f02",
{
center: [40.7501, -73.9885],
crs: L.CRS.EPSG3857,
zoom: 12,
zoomControl: true,
preferCanvas: false,
}
);
var tile_layer_437f5083832620de33fb716738a8a4da = 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_04ebe21ccca45e4b7c56014a60851f02);
function geo_json_695785bd5860de1f28170aaa77c01483_styler(feature) {
switch(feature.id) {
default:
return {"color": "red"};
}
}
function geo_json_695785bd5860de1f28170aaa77c01483_onEachFeature(feature, layer) {
layer.on({
});
};
var geo_json_695785bd5860de1f28170aaa77c01483 = L.geoJson(null, {
onEachFeature: geo_json_695785bd5860de1f28170aaa77c01483_onEachFeature,
style: geo_json_695785bd5860de1f28170aaa77c01483_styler,
});
function geo_json_695785bd5860de1f28170aaa77c01483_add (data) {
geo_json_695785bd5860de1f28170aaa77c01483
.addData(data)
.addTo(map_04ebe21ccca45e4b7c56014a60851f02);
}
geo_json_695785bd5860de1f28170aaa77c01483_add({"bbox": [-74.0203570671504, 40.7003781907179, -73.9455846946375, 40.7873649535321], "features": [{"bbox": [-74.0203570671504, 40.7003781907179, -73.9455846946375, 40.7873649535321], "geometry": {"coordinates": [[[-73.9455846946375, 40.7711351085905], [-73.9841893202025, 40.7873649535321], [-73.9976322499213, 40.7733311258037], [-74.0035177432988, 40.7642404854275], [-74.0097394992375, 40.7563218869601], [-74.01237903206, 40.741427380319], [-74.0159612551762, 40.7237048027967], [-74.0199205544099, 40.7110727528606], [-74.0203570671504, 40.7073623945662], [-74.0188292725586, 40.7010329598287], [-74.0087894795267, 40.7003781907179], [-73.9976584046436, 40.707144138196], [-73.9767057930988, 40.7104179837498], [-73.9695033328803, 40.730061057073], [-73.9736502039152, 40.7366087481808], [-73.968412051029, 40.7433746956588], [-73.968412051029, 40.7433746956588], [-73.9455846946375, 40.7711351085905]]], "type": "Polygon"}, "id": "0", "properties": {}, "type": "Feature"}], "type": "FeatureCollection"});
</script>
</html>