Skip to content

Instantly share code, notes, and snippets.

@bootleg224
Created September 6, 2018 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bootleg224/64478025fa3c5c46b36a7ad8f1b051a2 to your computer and use it in GitHub Desktop.
Save bootleg224/64478025fa3c5c46b36a7ad8f1b051a2 to your computer and use it in GitHub Desktop.
{
"html": "<html>\n<head>\n\n <link rel=\"stylesheet\" href=\"https://unpkg.com/leaflet@1.3.4/dist/leaflet.css\" integrity=\"sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA==\" crossorigin=\"\"/>\n <script src=\"https://unpkg.com/leaflet@1.3.4/dist/leaflet.js\" integrity=\"sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA==\" crossorigin=\"\"></script>\n\n</head>\n\n<body>\n\n\n\n<div id=\"mapid\" style=\"width: 800px; height: 1000px;\"></div>\n<script>\n\n\tvar mymap = L.map('mapid').setView([51.505, -0.09], 13);\n\n\tL.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {\n\t\tmaxZoom: 18,\n\t\tattribution: 'Map data &copy; <a href=\"https://www.openstreetmap.org/\">OpenStreetMap</a> contributors, ' +\n\t\t\t'<a href=\"https://creativecommons.org/licenses/by-sa/2.0/\">CC-BY-SA</a>, ' +\n\t\t\t'Imagery © <a href=\"https://www.mapbox.com/\">Mapbox</a>',\n\t\tid: 'mapbox.streets'\n\t}).addTo(mymap);\n\n\tL.marker([51.5, -0.09]).addTo(mymap)\n\t\t.bindPopup(\"<b>Hello world!</b><br />I am a popup.\").openPopup();\n\n\tL.circle([51.508, -0.11], 100, {\n\t\tcolor: 'red',\n\t\tfillColor: '#f03',\n\t\tfillOpacity: 0.5\n\t}).addTo(mymap).bindPopup(\"I am a circle.\");\n\n\tL.polygon([\n\t\t[51.509, -0.08],\n\t\t[51.503, -0.06],\n\t\t[51.51, -0.047]\n\t]).addTo(mymap).bindPopup(\"I am a polygon.\");\n\n\n\tvar popup = L.popup();\n\n</script>\n\n\n\n</body>\n</html>",
"json": "{}",
"endpoint": "chrome"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment