mapshaper 0.7.39 → 0.7.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mapshaper.js +17771 -17192
- package/package.json +1 -1
- package/www/mapshaper-gui.js +776 -19
- package/www/mapshaper.js +17771 -17192
- package/www/page.css +68 -1
package/www/page.css
CHANGED
|
@@ -1585,6 +1585,35 @@ img.eye-btn {
|
|
|
1585
1585
|
background: black;
|
|
1586
1586
|
}
|
|
1587
1587
|
|
|
1588
|
+
.ruler-popup {
|
|
1589
|
+
position: absolute;
|
|
1590
|
+
z-index: 45;
|
|
1591
|
+
top: 12px;
|
|
1592
|
+
left: 50%;
|
|
1593
|
+
transform: translateX(-50%);
|
|
1594
|
+
min-width: 160px;
|
|
1595
|
+
padding: 6px 28px 6px 10px;
|
|
1596
|
+
border-radius: 11px;
|
|
1597
|
+
border: 1px solid #d5d5d5;
|
|
1598
|
+
box-shadow: 0 1px 7px rgba(0,0,0,0.18);
|
|
1599
|
+
background: rgba(255,255,255,0.94);
|
|
1600
|
+
font-size: 13px;
|
|
1601
|
+
line-height: 1.25;
|
|
1602
|
+
text-align: center;
|
|
1603
|
+
box-sizing: border-box;
|
|
1604
|
+
pointer-events: auto;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
.ruler-popup-content div + div {
|
|
1608
|
+
margin-top: 2px;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
.ruler-popup .ruler-close-btn {
|
|
1612
|
+
position: absolute;
|
|
1613
|
+
top: 5px;
|
|
1614
|
+
right: 1px;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1588
1617
|
|
|
1589
1618
|
/* --- Map ---------------------- */
|
|
1590
1619
|
|
|
@@ -1914,10 +1943,15 @@ div.basemap-style-btn.active {
|
|
|
1914
1943
|
}
|
|
1915
1944
|
|
|
1916
1945
|
.map-layers.add-points,
|
|
1917
|
-
.map-layers.draw-tool
|
|
1946
|
+
.map-layers.draw-tool,
|
|
1947
|
+
.map-layers.ruler-tool {
|
|
1918
1948
|
cursor: crosshair;
|
|
1919
1949
|
}
|
|
1920
1950
|
|
|
1951
|
+
.map-layers.ruler-dragging {
|
|
1952
|
+
cursor: grabbing;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1921
1955
|
.map-layers.draw-tool.dragging {
|
|
1922
1956
|
cursor: default;
|
|
1923
1957
|
}
|
|
@@ -1945,6 +1979,39 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
1945
1979
|
position: absolute;
|
|
1946
1980
|
}
|
|
1947
1981
|
|
|
1982
|
+
.map-layers > svg.ruler-overlay {
|
|
1983
|
+
top: 0;
|
|
1984
|
+
left: 0;
|
|
1985
|
+
z-index: 20;
|
|
1986
|
+
pointer-events: none;
|
|
1987
|
+
overflow: visible;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
.ruler-line {
|
|
1991
|
+
fill: none;
|
|
1992
|
+
stroke: #cc35a5;
|
|
1993
|
+
stroke-width: 2;
|
|
1994
|
+
stroke-linecap: round;
|
|
1995
|
+
stroke-linejoin: round;
|
|
1996
|
+
vector-effect: non-scaling-stroke;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
.ruler-great-circle {
|
|
2000
|
+
stroke: #1385B7;
|
|
2001
|
+
stroke-dasharray: 7 5;
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
.ruler-endpoint {
|
|
2005
|
+
fill: #fff;
|
|
2006
|
+
stroke: #cc35a5;
|
|
2007
|
+
stroke-width: 2;
|
|
2008
|
+
vector-effect: non-scaling-stroke;
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
.ruler-endpoint.ruler-great-circle-endpoint {
|
|
2012
|
+
stroke: #1385B7;
|
|
2013
|
+
}
|
|
2014
|
+
|
|
1948
2015
|
.map-layers > svg text.selected {
|
|
1949
2016
|
stroke: #FFC3FF;
|
|
1950
2017
|
stroke-width: 4;
|