Skip to content

Instantly share code, notes, and snippets.

@Avec112
Avec112 / index.html
Last active June 22, 2020 09:04
Simple Leflet with Context Menu Plugin demonstration. OpenStreetMap is default. Use your own accesstoken if you want to use MapBox.
<html>
<head>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin=""/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet-contextmenu/1.4.0/leaflet.contextmenu.min.css"/>
</head>
<body>
<div><p>LatLng: <span id="coordinates"></span></p></div>
<div id="map"/>
@Avec112
Avec112 / index.html
Last active June 22, 2020 09:05
GeoServer demo using Leaflet, OpenStreetMap and an italian GeoServer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!--meta http-equiv="X-UA-Compatible" content="IE=edge"-->
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
<title>Example Leaflet</title>
<!--link rel="stylesheet" href="https://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"-->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"