Skip to content

Instantly share code, notes, and snippets.

@Irene-123
Created May 20, 2022 11:34
Show Gist options
  • Save Irene-123/b432b74e88366ab6b65bc2fa28a598f0 to your computer and use it in GitHub Desktop.
Save Irene-123/b432b74e88366ab6b65bc2fa28a598f0 to your computer and use it in GitHub Desktop.
<!DOCTYPE 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.6.0/dist/leaflet.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.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.6.0/dist/leaflet.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.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_697460c1e4e2534f572fc524e1b17d94 {
position: relative;
width: 100.0%;
height: 100.0%;
left: 0.0%;
top: 0.0%;
}
</style>
</head>
<body>
<div class="folium-map" id="map_697460c1e4e2534f572fc524e1b17d94" ></div>
</body>
<script>
var map_697460c1e4e2534f572fc524e1b17d94 = L.map(
"map_697460c1e4e2534f572fc524e1b17d94",
{
center: [26.306076, 73.059769],
crs: L.CRS.EPSG3857,
zoom: 7,
zoomControl: true,
preferCanvas: false,
}
);
var tile_layer_872be271b8f0b0b6faacdb400f3f0352 = L.tileLayer(
"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
{"attribution": "Data by \u0026copy; \u003ca href=\"http://openstreetmap.org\"\u003eOpenStreetMap\u003c/a\u003e, under \u003ca 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_697460c1e4e2534f572fc524e1b17d94);
var poly_line_afeb3db55edf88d036cf32a71a7d3997 = L.polyline(
[[26.306076, 73.059769], [28.306076, 80.059769]],
{"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": false, "fillColor": "red", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "noClip": false, "opacity": 0.8, "smoothFactor": 1.0, "stroke": true, "weight": 15}
).addTo(map_697460c1e4e2534f572fc524e1b17d94);
var marker_73f83e4971e273cb0e57833a9d233152 = L.marker(
[26.306076, 73.059769],
{"color": "red"}
).addTo(map_697460c1e4e2534f572fc524e1b17d94);
var marker_1af62f57f7aeae318af4f2ca8d8e23a6 = L.marker(
[28.306076, 80.059769],
{"color": "red"}
).addTo(map_697460c1e4e2534f572fc524e1b17d94);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment