Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
107 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
.leaflet-control { | ||
cursor: pointer; | ||
cursor: pointer; | ||
} | ||
|
||
a.polyline-measure-controlOnBgColor, a.polyline-measure-controlOnBgColor:hover { | ||
background-color: #8f8; | ||
background-color: #8f8; | ||
} | ||
|
||
.polyline-measure-unicode-icon { | ||
font-size: 19px; | ||
font-weight: bold; | ||
font-size: 19px; | ||
font-weight: bold; | ||
} | ||
|
||
a.polyline-measure-clearControl:active { | ||
background-color: #f88; | ||
background-color: #f88; | ||
} | ||
|
||
.polyline-measure-tooltip { | ||
font: 10px Arial, Helvetica, sans-serif; | ||
font: 10px Arial, Helvetica, sans-serif; | ||
line-height: 10px; | ||
background-color: rgba(255, 255, 170, 0.7); | ||
background-color: rgba(255, 255, 170, 0.7); | ||
border-radius: 3px; | ||
box-shadow: 1px 1px 4px #888; | ||
margin: 0; | ||
padding: 2px; | ||
width: auto !important; | ||
height: auto !important; | ||
white-space: nowrap; | ||
box-shadow: 1px 1px 4px #888; | ||
margin: 0; | ||
padding: 2px; | ||
width: auto !important; | ||
height: auto !important; | ||
white-space: nowrap; | ||
text-align: right; | ||
} | ||
|
||
.polyline-measure-tooltip-end { | ||
background-color: rgba(255, 255, 40, 0.7); | ||
background-color: rgba(255, 255, 40, 0.7); | ||
} | ||
|
||
.polyline-measure-tooltip-total { | ||
color: #006; | ||
color: #006; | ||
font-weight: bold; | ||
} | ||
|
||
.polyline-measure-tooltip-difference { | ||
color: #060; | ||
font-style: italic; | ||
color: #060; | ||
font-style: italic; | ||
} | ||
|
||
.polyline-measure-popupTooltip { | ||
font: 11px Arial, Helvetica, sans-serif; | ||
font: 11px Arial, Helvetica, sans-serif; | ||
line-height: 11px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Demo 1 of Leaflet.PolylineMeasure</title> | ||
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" /> | ||
<link rel="stylesheet" href="Leaflet.PolylineMeasure.css" /> | ||
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" /> | ||
<link rel="stylesheet" href="Leaflet.PolylineMeasure.css" /> | ||
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script> | ||
<script src="Leaflet.PolylineMeasure.js"></script> | ||
<style> | ||
<style> | ||
body {padding: 0; margin: 0;} | ||
html, body, #map {height: 100%;} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="map"></div> | ||
<script> | ||
</style> | ||
</head> | ||
<body> | ||
<div id="map"></div> | ||
<script> | ||
var layerOsm = new L.TileLayer('https://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}', {subdomains:['server','services'], maxZoom:19, noWrap:false, attribution:'<a href="https://www.arcgis.com/">ArcGIS</a>' }); | ||
var map = new L.Map('map').addLayer(layerOsm).setView(new L.LatLng(48, 0), 4); | ||
var map = new L.Map('map').addLayer(layerOsm).setView(new L.LatLng(48, 0), 4); | ||
L.control.scale({maxWidth:240, metric:true, imperial:false, position: 'bottomleft'}).addTo(map); | ||
L.control.polylineMeasure({position:'topleft', unit:'metres', showBearings:true, clearMeasurementsOnStop: false, showClearControl: true, showUnitControl: true}).addTo(map); | ||
</script> | ||
</body> | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Demo 2 of Leaflet.PolylineMeasure</title> | ||
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" /> | ||
<link rel="stylesheet" href="Leaflet.PolylineMeasure.css" /> | ||
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" /> | ||
<link rel="stylesheet" href="Leaflet.PolylineMeasure.css" /> | ||
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script> | ||
<script src="Leaflet.PolylineMeasure.js"></script> | ||
<style> | ||
<style> | ||
body {padding: 0; margin: 0;} | ||
html, body, #map {height: 100%;} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="map"></div> | ||
<script> | ||
</style> | ||
</head> | ||
<body> | ||
<div id="map"></div> | ||
<script> | ||
var layerOsm = new L.TileLayer('https://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}', {subdomains:['server','services'], maxZoom:19, noWrap:false, attribution:'<a href="https://www.arcgis.com/">ArcGIS</a>' }); | ||
var map = new L.Map('map').addLayer(layerOsm).setView(new L.LatLng(48, 0), 4); | ||
var map = new L.Map('map').addLayer(layerOsm).setView(new L.LatLng(48, 0), 4); | ||
L.control.scale({maxWidth:240, metric:false, imperial:true, position: 'bottomleft'}).addTo(map); | ||
L.control.polylineMeasure({position:'topleft', unit:'landmiles', clearMeasurementsOnStop: false, showMeasurementsClearControl: true, showUnitControl: false}).addTo(map); | ||
</script> | ||
</body> | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Demo 3 of Leaflet.PolylineMeasure</title> | ||
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" /> | ||
<link rel="stylesheet" href="Leaflet.PolylineMeasure.css" /> | ||
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" /> | ||
<link rel="stylesheet" href="Leaflet.PolylineMeasure.css" /> | ||
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script> | ||
<script src="Leaflet.PolylineMeasure.js"></script> | ||
<style> | ||
<style> | ||
body {padding: 0; margin: 0;} | ||
html, body, #map {height: 100%;} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="map"></div> | ||
<script> | ||
</style> | ||
</head> | ||
<body> | ||
<div id="map"></div> | ||
<script> | ||
var layerOsm = new L.TileLayer('https://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}', {subdomains:['server','services'], maxZoom:19, noWrap:true, attribution:'<a href="https://www.arcgis.com/">ArcGIS</a>' }); | ||
var map = new L.Map('map').addLayer(layerOsm).setView(new L.LatLng(48, 0), 4); | ||
var map = new L.Map('map').addLayer(layerOsm).setView(new L.LatLng(48, 0), 4); | ||
L.control.scale({maxWidth:240, metric:false, imperial:true, position: 'bottomleft'}).addTo(map); | ||
L.control.polylineMeasure({position:'topleft', unit:'nauticalmiles', showBearings:true, clearMeasurementsOnStop: false, showMeasurementsClearControl: false, showUnitControl: false}).addTo(map); | ||
</script> | ||
</body> | ||
</script> | ||
</body> | ||
</html> |