mapshaper 0.7.17 → 0.7.19
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 +110 -28
- package/package.json +2 -2
- package/www/index.html +3 -3
- package/www/mapshaper-gui.js +2650 -1301
- package/www/mapshaper.js +110 -28
- package/www/page.css +250 -8
package/www/mapshaper.js
CHANGED
|
@@ -18650,14 +18650,14 @@
|
|
|
18650
18650
|
var labelPositionFields = ['label-pos', 'dx', 'dy', 'text-anchor'];
|
|
18651
18651
|
|
|
18652
18652
|
var labelPositionStyles = {
|
|
18653
|
-
n: {dx: 0, dy: '-0.
|
|
18654
|
-
s: {dx: 0, dy: '1.
|
|
18655
|
-
e: {dx: '0.
|
|
18656
|
-
w: {dx: '-0.
|
|
18657
|
-
ne: {dx: '0.
|
|
18658
|
-
se: {dx: '0.
|
|
18659
|
-
nw: {dx: '-0.
|
|
18660
|
-
sw: {dx: '-0.
|
|
18653
|
+
n: {dx: 0, dy: '-0.5em', 'text-anchor': 'middle'},
|
|
18654
|
+
s: {dx: 0, dy: '1.1em', 'text-anchor': 'middle'},
|
|
18655
|
+
e: {dx: '0.45em', dy: '0.23em', 'text-anchor': 'start'},
|
|
18656
|
+
w: {dx: '-0.45em', dy: '0.23em', 'text-anchor': 'end'},
|
|
18657
|
+
ne: {dx: '0.4em', dy: '-0.15em', 'text-anchor': 'start'},
|
|
18658
|
+
se: {dx: '0.4em', dy: '0.7em', 'text-anchor': 'start'},
|
|
18659
|
+
nw: {dx: '-0.4em', dy: '-0.15em', 'text-anchor': 'end'},
|
|
18660
|
+
sw: {dx: '-0.4em', dy: '0.7em', 'text-anchor': 'end'},
|
|
18661
18661
|
c: {dx: 0, dy: '0.25em', 'text-anchor': 'middle'}
|
|
18662
18662
|
};
|
|
18663
18663
|
|
|
@@ -19880,7 +19880,7 @@
|
|
|
19880
19880
|
function exportSVG(dataset, opts) {
|
|
19881
19881
|
var namespace = 'xmlns="http://www.w3.org/2000/svg"';
|
|
19882
19882
|
var defs = [];
|
|
19883
|
-
var frame, svg, layers, metadataJSON;
|
|
19883
|
+
var frame, svg, layers, metadataJSON, files, svgFile;
|
|
19884
19884
|
var style = '';
|
|
19885
19885
|
|
|
19886
19886
|
// kludge for map keys
|
|
@@ -19901,6 +19901,8 @@
|
|
|
19901
19901
|
// use invert_y: 0 setting for screen coordinates and geojson polygon generation
|
|
19902
19902
|
// use 1px default margin so typical strokes don't get cut off on the sides
|
|
19903
19903
|
opts = Object.assign({invert_y: true, margin: "1"}, opts);
|
|
19904
|
+
opts.svg_image_files = [];
|
|
19905
|
+
opts.svg_file_base = getSvgFileBase(dataset, opts);
|
|
19904
19906
|
frame = getFrameData(dataset, opts);
|
|
19905
19907
|
fitDatasetToFrame(dataset, frame);
|
|
19906
19908
|
setCoordinatePrecision(dataset, opts.precision || 0.01);
|
|
@@ -19953,10 +19955,17 @@
|
|
|
19953
19955
|
${svg}
|
|
19954
19956
|
</svg>`;
|
|
19955
19957
|
svg = utils.format(template, frame.width, frame.height, 0, 0, frame.width, frame.height);
|
|
19956
|
-
|
|
19958
|
+
svgFile = {
|
|
19957
19959
|
content: svg,
|
|
19958
19960
|
filename: opts.file || getOutputFileBase(dataset) + '.svg'
|
|
19959
|
-
}
|
|
19961
|
+
};
|
|
19962
|
+
files = [svgFile].concat(opts.svg_image_files);
|
|
19963
|
+
return files;
|
|
19964
|
+
}
|
|
19965
|
+
|
|
19966
|
+
function getSvgFileBase(dataset, opts) {
|
|
19967
|
+
var file = opts.file || getOutputFileBase(dataset) + '.svg';
|
|
19968
|
+
return file.replace(/\.svg$/i, '');
|
|
19960
19969
|
}
|
|
19961
19970
|
|
|
19962
19971
|
function getMetadataBlock(metadataJSON, viewBox) {
|
|
@@ -20047,7 +20056,9 @@ ${svg}
|
|
|
20047
20056
|
layerObj.children = [];
|
|
20048
20057
|
return layerObj;
|
|
20049
20058
|
}
|
|
20050
|
-
href =
|
|
20059
|
+
href = opts.linked_images ?
|
|
20060
|
+
exportLinkedRasterPreview(rendered.preview, opts) :
|
|
20061
|
+
encodeRasterPreview(rendered.preview, opts);
|
|
20051
20062
|
layerObj.children = [{
|
|
20052
20063
|
tag: 'image',
|
|
20053
20064
|
properties: {
|
|
@@ -20121,6 +20132,30 @@ ${svg}
|
|
|
20121
20132
|
return 'data:image/' + format + ';base64,' + data;
|
|
20122
20133
|
}
|
|
20123
20134
|
|
|
20135
|
+
function exportLinkedRasterPreview(preview, opts) {
|
|
20136
|
+
var format = getSvgRasterFormat(preview, opts);
|
|
20137
|
+
var data = format == 'png' ? encodePng(preview) : encodeJpeg(preview, opts);
|
|
20138
|
+
var ext = format == 'jpeg' ? 'jpg' : format;
|
|
20139
|
+
var filename = opts.svg_file_base + '-image-' + (opts.svg_image_files.length + 1) + '.' + ext;
|
|
20140
|
+
opts.svg_image_files.push({
|
|
20141
|
+
filename: filename,
|
|
20142
|
+
content: base64ToBytes(data)
|
|
20143
|
+
});
|
|
20144
|
+
return filename;
|
|
20145
|
+
}
|
|
20146
|
+
|
|
20147
|
+
function base64ToBytes(str) {
|
|
20148
|
+
if (typeof Buffer != 'undefined') {
|
|
20149
|
+
return Buffer.from(str, 'base64');
|
|
20150
|
+
}
|
|
20151
|
+
var bin = atob(str);
|
|
20152
|
+
var bytes = new Uint8Array(bin.length);
|
|
20153
|
+
for (var i = 0; i < bin.length; i++) {
|
|
20154
|
+
bytes[i] = bin.charCodeAt(i);
|
|
20155
|
+
}
|
|
20156
|
+
return bytes;
|
|
20157
|
+
}
|
|
20158
|
+
|
|
20124
20159
|
function getSvgRasterFormat(preview, opts) {
|
|
20125
20160
|
var fmt = opts.svg_raster_format || opts.raster_format || null;
|
|
20126
20161
|
if (fmt) return fmt == 'jpg' ? 'jpeg' : fmt;
|
|
@@ -20136,11 +20171,11 @@ ${svg}
|
|
|
20136
20171
|
}
|
|
20137
20172
|
|
|
20138
20173
|
function encodeJpeg(preview, opts) {
|
|
20174
|
+
var quality = getJpegQuality(opts);
|
|
20139
20175
|
if (runningInBrowser() && typeof document != 'undefined') {
|
|
20140
|
-
return encodeWithCanvas(preview, 'image/jpeg',
|
|
20176
|
+
return encodeWithCanvas(preview, 'image/jpeg', quality / 100);
|
|
20141
20177
|
}
|
|
20142
20178
|
var jpeg = require$1('jpeg-js');
|
|
20143
|
-
var quality = Math.round((opts.svg_raster_quality || 0.85) * 100);
|
|
20144
20179
|
return Buffer.from(jpeg.encode({
|
|
20145
20180
|
data: Buffer.from(preview.pixels),
|
|
20146
20181
|
width: preview.width,
|
|
@@ -20148,6 +20183,14 @@ ${svg}
|
|
|
20148
20183
|
}, quality).data).toString('base64');
|
|
20149
20184
|
}
|
|
20150
20185
|
|
|
20186
|
+
function getJpegQuality(opts) {
|
|
20187
|
+
var quality = opts.jpeg_quality == null ? 85 : opts.jpeg_quality;
|
|
20188
|
+
if ((quality >= 1 && quality <= 100) === false) {
|
|
20189
|
+
stop$1('jpeg-quality= option should be a number from 1 to 100');
|
|
20190
|
+
}
|
|
20191
|
+
return Math.round(quality);
|
|
20192
|
+
}
|
|
20193
|
+
|
|
20151
20194
|
function encodePng(preview) {
|
|
20152
20195
|
if (runningInBrowser() && typeof document != 'undefined') {
|
|
20153
20196
|
return encodeWithCanvas(preview, 'image/png');
|
|
@@ -29002,6 +29045,10 @@ ${svg}
|
|
|
29002
29045
|
if ('topojson_precision' in o && o.topojson_precision > 0 === false) {
|
|
29003
29046
|
error('topojson-precision= option should be a positive number');
|
|
29004
29047
|
}
|
|
29048
|
+
|
|
29049
|
+
if ('jpeg_quality' in o && (o.jpeg_quality >= 1 && o.jpeg_quality <= 100) === false) {
|
|
29050
|
+
error('jpeg-quality= option should be a number from 1 to 100');
|
|
29051
|
+
}
|
|
29005
29052
|
}
|
|
29006
29053
|
|
|
29007
29054
|
var assignmentRxp = /^([a-z0-9_+-]+)=(?!=)(.*)$/i; // exclude ==
|
|
@@ -30408,6 +30455,14 @@ ${svg}
|
|
|
30408
30455
|
describe: '[SVG] raster pixels per SVG pixel (default is 1)',
|
|
30409
30456
|
type: 'number'
|
|
30410
30457
|
})
|
|
30458
|
+
.option('linked-images', {
|
|
30459
|
+
describe: '[SVG] link raster images as external files',
|
|
30460
|
+
type: 'flag'
|
|
30461
|
+
})
|
|
30462
|
+
.option('jpeg-quality', {
|
|
30463
|
+
describe: '[SVG] JPEG quality for raster images, 1-100 (default is 85)',
|
|
30464
|
+
type: 'number'
|
|
30465
|
+
})
|
|
30411
30466
|
.option('fit-extent', {
|
|
30412
30467
|
describe: '[SVG] layer to use for the map extent'
|
|
30413
30468
|
})
|
|
@@ -31432,6 +31487,10 @@ ${svg}
|
|
|
31432
31487
|
.option('nodata-color', {
|
|
31433
31488
|
describe: '[raster] color for uncovered pixels after reprojection'
|
|
31434
31489
|
})
|
|
31490
|
+
.option('background', {
|
|
31491
|
+
describe: '[raster] alias for nodata-color',
|
|
31492
|
+
alias_to: 'nodata-color'
|
|
31493
|
+
})
|
|
31435
31494
|
.option('resampling', {
|
|
31436
31495
|
describe: '[raster] nearest or bilinear (default is bilinear)'
|
|
31437
31496
|
})
|
|
@@ -31667,6 +31726,10 @@ ${svg}
|
|
|
31667
31726
|
type: 'flag'
|
|
31668
31727
|
})
|
|
31669
31728
|
.option('where', whereOpt)
|
|
31729
|
+
.option('ids', {
|
|
31730
|
+
describe: 'comma-sep. list of feature ids to style',
|
|
31731
|
+
type: 'numbers'
|
|
31732
|
+
})
|
|
31670
31733
|
.option('class', {
|
|
31671
31734
|
describe: 'name of CSS class or classes (space-separated)'
|
|
31672
31735
|
})
|
|
@@ -44077,7 +44140,17 @@ ${svg}
|
|
|
44077
44140
|
return utils.pickOne(schemes) || 'Tableau20';
|
|
44078
44141
|
}
|
|
44079
44142
|
|
|
44080
|
-
function
|
|
44143
|
+
function randomRotateArr(arr) {
|
|
44144
|
+
var n = Math.floor(Math.random() * arr.length);
|
|
44145
|
+
return arr.slice(-n).concat(arr.slice(0, -n));
|
|
44146
|
+
}
|
|
44147
|
+
|
|
44148
|
+
function getRandomizedCategoricalColorScheme(n) {
|
|
44149
|
+
var name = pickRandomCategoricalScheme(n);
|
|
44150
|
+
return getCategoricalColorScheme(name, n, true);
|
|
44151
|
+
}
|
|
44152
|
+
|
|
44153
|
+
function getCategoricalColorScheme(name, n, randomized) {
|
|
44081
44154
|
var colors;
|
|
44082
44155
|
initSchemes();
|
|
44083
44156
|
name = standardName(name);
|
|
@@ -44092,7 +44165,11 @@ ${svg}
|
|
|
44092
44165
|
// stop(name, 'does not contain', n, 'colors');
|
|
44093
44166
|
message('Color scheme has', colors.length, 'colors. Using duplication to match', n, 'categories.');
|
|
44094
44167
|
colors = wrapColors(colors, n);
|
|
44095
|
-
}
|
|
44168
|
+
}
|
|
44169
|
+
if (randomized) {
|
|
44170
|
+
colors = randomRotateArr(colors);
|
|
44171
|
+
}
|
|
44172
|
+
if (n < colors.length) {
|
|
44096
44173
|
colors = colors.slice(0, n);
|
|
44097
44174
|
}
|
|
44098
44175
|
return colors;
|
|
@@ -44183,7 +44260,7 @@ ${svg}
|
|
|
44183
44260
|
|
|
44184
44261
|
if (colorArg == 'random') {
|
|
44185
44262
|
if (categorical) {
|
|
44186
|
-
|
|
44263
|
+
return getRandomizedCategoricalColorScheme(n);
|
|
44187
44264
|
} else {
|
|
44188
44265
|
colorScheme = pickRandomColorScheme('sequential');
|
|
44189
44266
|
}
|
|
@@ -51092,7 +51169,7 @@ ${svg}
|
|
|
51092
51169
|
bbox = opts.output_bbox || opts.outputBbox || getProjectedMeshBBox(mesh);
|
|
51093
51170
|
if (!bbox) stop$1('Unable to project raster layer');
|
|
51094
51171
|
outSize = getOutputGridSize(grid, bbox, opts);
|
|
51095
|
-
outGrid = createProjectedRasterGrid(grid, bbox, outSize.width, outSize.height, opts);
|
|
51172
|
+
outGrid = createProjectedRasterGrid(grid, raster, bbox, outSize.width, outSize.height, opts);
|
|
51096
51173
|
timeStart(timing, 'rasterize');
|
|
51097
51174
|
rasterizeProjectedMesh(grid, outGrid, mesh, getRasterProjectionSampleMethod(raster, opts));
|
|
51098
51175
|
timeEnd(timing, 'rasterize');
|
|
@@ -51361,13 +51438,13 @@ ${svg}
|
|
|
51361
51438
|
return xmin < Infinity && xmax > xmin && ymax > ymin ? [xmin, ymin, xmax, ymax] : null;
|
|
51362
51439
|
}
|
|
51363
51440
|
|
|
51364
|
-
function createProjectedRasterGrid(grid, bbox, widthArg, heightArg, opts) {
|
|
51441
|
+
function createProjectedRasterGrid(grid, raster, bbox, widthArg, heightArg, opts) {
|
|
51365
51442
|
var width = widthArg || grid.width;
|
|
51366
51443
|
var height = heightArg || grid.height;
|
|
51367
|
-
var bands = getOutputBandCount(grid, opts);
|
|
51444
|
+
var bands = getOutputBandCount(grid, raster, opts);
|
|
51368
51445
|
var samples = new grid.samples.constructor(width * height * bands);
|
|
51369
51446
|
var coverage = new Uint8Array(width * height);
|
|
51370
|
-
fillProjectedRasterSamples(samples, bands, grid, opts || {});
|
|
51447
|
+
fillProjectedRasterSamples(samples, bands, grid, raster, opts || {});
|
|
51371
51448
|
return Object.assign({}, grid, {
|
|
51372
51449
|
width: width,
|
|
51373
51450
|
height: height,
|
|
@@ -51404,13 +51481,13 @@ ${svg}
|
|
|
51404
51481
|
return {width: width, height: height};
|
|
51405
51482
|
}
|
|
51406
51483
|
|
|
51407
|
-
function getOutputBandCount(grid, opts) {
|
|
51408
|
-
var color = getNoDataColor(opts);
|
|
51484
|
+
function getOutputBandCount(grid, raster, opts) {
|
|
51485
|
+
var color = getNoDataColor(raster, opts);
|
|
51409
51486
|
return color && color.a === 0 && grid.bands > 1 && grid.bands < 4 ? 4 : grid.bands;
|
|
51410
51487
|
}
|
|
51411
51488
|
|
|
51412
|
-
function fillProjectedRasterSamples(samples, bands, grid, opts) {
|
|
51413
|
-
var color = getNoDataColor(opts);
|
|
51489
|
+
function fillProjectedRasterSamples(samples, bands, grid, raster, opts) {
|
|
51490
|
+
var color = getNoDataColor(raster, opts);
|
|
51414
51491
|
var noData = grid.nodata;
|
|
51415
51492
|
if (color) {
|
|
51416
51493
|
fillProjectedRasterColor(samples, bands, color);
|
|
@@ -51420,10 +51497,12 @@ ${svg}
|
|
|
51420
51497
|
samples.fill(noData);
|
|
51421
51498
|
}
|
|
51422
51499
|
|
|
51423
|
-
function getNoDataColor(opts) {
|
|
51500
|
+
function getNoDataColor(raster, opts) {
|
|
51424
51501
|
var arg = opts.nodata_color || opts.nodataColor;
|
|
51425
51502
|
var color;
|
|
51426
|
-
if (arg == null || arg === '')
|
|
51503
|
+
if (arg == null || arg === '') {
|
|
51504
|
+
return rasterAppearsCategorical(raster) ? null : {r: 255, g: 255, b: 255, a: 1};
|
|
51505
|
+
}
|
|
51427
51506
|
if (String(arg).toLowerCase() == 'transparent') {
|
|
51428
51507
|
return {r: 0, g: 0, b: 0, a: 0};
|
|
51429
51508
|
}
|
|
@@ -56697,6 +56776,9 @@ ${svg}
|
|
|
56697
56776
|
if (opts.where) {
|
|
56698
56777
|
filterFn = compileFeatureExpression(opts.where, lyr, dataset.arcs);
|
|
56699
56778
|
}
|
|
56779
|
+
if (opts.ids) {
|
|
56780
|
+
filterFn = combineFilters(filterFn, getIdFilter(opts.ids));
|
|
56781
|
+
}
|
|
56700
56782
|
if (opts.clear) {
|
|
56701
56783
|
lyr.data.getFields().filter(isSupportedSvgStyleProperty).forEach(lyr.data.deleteField, lyr.data);
|
|
56702
56784
|
}
|
|
@@ -58248,7 +58330,7 @@ ${svg}
|
|
|
58248
58330
|
});
|
|
58249
58331
|
}
|
|
58250
58332
|
|
|
58251
|
-
var version = "0.7.
|
|
58333
|
+
var version = "0.7.19";
|
|
58252
58334
|
|
|
58253
58335
|
// Parse command line args into commands and run them
|
|
58254
58336
|
// Function takes an optional Node-style callback. A Promise is returned if no callback is given.
|
package/www/page.css
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
--xlt-theme-col: #f4f8f9;
|
|
19
19
|
--accent-col: #ffa; /* yellow logo text */
|
|
20
20
|
--theme-col: #1385B7; /* blue header / btn col */
|
|
21
|
-
--dk-theme-col: #
|
|
21
|
+
--dk-theme-col: #196d8e; /* #1A6A96; btn hover col */
|
|
22
22
|
--lt-theme-col: #e6f7ff;
|
|
23
23
|
--colored-text: #10699b;
|
|
24
24
|
--normal-text: #333;
|
|
@@ -671,7 +671,7 @@ textarea:focus {
|
|
|
671
671
|
min-width: 230px;
|
|
672
672
|
word-wrap: break-word;
|
|
673
673
|
text-align: left;
|
|
674
|
-
margin-top:
|
|
674
|
+
margin-top: 16px;
|
|
675
675
|
padding: 14px 16px 13px 18px;
|
|
676
676
|
vertical-align: top;
|
|
677
677
|
display: inline-block;
|
|
@@ -874,7 +874,7 @@ body.sidebar-resizing .sidebar-resize-handle::before,
|
|
|
874
874
|
|
|
875
875
|
.sidebar-tabs {
|
|
876
876
|
position: absolute;
|
|
877
|
-
top:
|
|
877
|
+
top: 66px; /* below line intersection repair link */
|
|
878
878
|
left: 0;
|
|
879
879
|
z-index: 40;
|
|
880
880
|
pointer-events: auto;
|
|
@@ -882,6 +882,7 @@ body.sidebar-resizing .sidebar-resize-handle::before,
|
|
|
882
882
|
|
|
883
883
|
body.sidebar-open .sidebar-tabs {
|
|
884
884
|
left: var(--left-sidebar-width);
|
|
885
|
+
margin-left: -1.5px;
|
|
885
886
|
}
|
|
886
887
|
|
|
887
888
|
body.sidebar-tabs-over-popup .sidebar-tabs {
|
|
@@ -902,12 +903,17 @@ body.sidebar-tabs-over-popup .sidebar-tabs {
|
|
|
902
903
|
pointer-events: auto;
|
|
903
904
|
}
|
|
904
905
|
|
|
905
|
-
.sidebar-tab:hover
|
|
906
|
+
.sidebar-tab:hover {
|
|
907
|
+
background-color: var(--dk-theme-col);
|
|
908
|
+
}
|
|
909
|
+
|
|
906
910
|
body.layers-open .layer-tab,
|
|
907
911
|
body.console-open .console-tab {
|
|
908
|
-
background-color:
|
|
912
|
+
background-color: black;
|
|
909
913
|
}
|
|
910
914
|
|
|
915
|
+
|
|
916
|
+
|
|
911
917
|
.console-window {
|
|
912
918
|
pointer-events: auto;
|
|
913
919
|
background-color: black;
|
|
@@ -1109,7 +1115,6 @@ body.simplify .layer-control-btn {
|
|
|
1109
1115
|
.layer-control .info-box {
|
|
1110
1116
|
padding: 0;
|
|
1111
1117
|
pointer-events: none;
|
|
1112
|
-
background-color: transparent;
|
|
1113
1118
|
}
|
|
1114
1119
|
|
|
1115
1120
|
.layer-control div.info-box-scrolled {
|
|
@@ -2025,6 +2030,11 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
2025
2030
|
font-size: 12.5px;
|
|
2026
2031
|
}
|
|
2027
2032
|
|
|
2033
|
+
.label-style-panel button.label-style-close {
|
|
2034
|
+
font-size: 16px; /* close button icon */
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
|
|
2028
2038
|
.label-style-panel select {
|
|
2029
2039
|
padding: 1px 0;
|
|
2030
2040
|
}
|
|
@@ -2053,7 +2063,7 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
2053
2063
|
.label-style-row span,
|
|
2054
2064
|
.label-style-row-label {
|
|
2055
2065
|
display: block;
|
|
2056
|
-
margin-bottom: 3px;
|
|
2066
|
+
/* margin-bottom: 3px; */
|
|
2057
2067
|
color: #555;
|
|
2058
2068
|
}
|
|
2059
2069
|
|
|
@@ -2121,7 +2131,8 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
2121
2131
|
border-top: 1px solid #ccc;
|
|
2122
2132
|
}
|
|
2123
2133
|
|
|
2124
|
-
.label-saved-style-row button
|
|
2134
|
+
.label-saved-style-row button,
|
|
2135
|
+
.label-style-row button {
|
|
2125
2136
|
margin-right: 5px;
|
|
2126
2137
|
}
|
|
2127
2138
|
|
|
@@ -2201,6 +2212,185 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
2201
2212
|
box-sizing: border-box;
|
|
2202
2213
|
}
|
|
2203
2214
|
|
|
2215
|
+
.layer-style-panel .layer-color-row {
|
|
2216
|
+
position: relative;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
.point-style-section + .point-style-section {
|
|
2220
|
+
margin-top: 10px;
|
|
2221
|
+
padding-top: 8px;
|
|
2222
|
+
border-top: 1px solid #ccc;
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
.point-style-section.point-style-first-visible {
|
|
2226
|
+
margin-top: 7px;
|
|
2227
|
+
padding-top: 0;
|
|
2228
|
+
border-top: 0;
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
.point-style-note {
|
|
2232
|
+
color: #555;
|
|
2233
|
+
line-height: 1.25;
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
.point-create-labels-row {
|
|
2237
|
+
display: flex;
|
|
2238
|
+
align-items: center;
|
|
2239
|
+
gap: 10px;
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
.point-create-circles-row {
|
|
2243
|
+
display: flex;
|
|
2244
|
+
align-items: baseline;
|
|
2245
|
+
gap: 2px;
|
|
2246
|
+
color: #555;
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
.point-create-circles-row span {
|
|
2250
|
+
display: inline;
|
|
2251
|
+
margin: 0;
|
|
2252
|
+
color: #555;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
.point-create-copy-label {
|
|
2256
|
+
display: inline-flex;
|
|
2257
|
+
align-items: center;
|
|
2258
|
+
gap: 4px;
|
|
2259
|
+
margin: 0;
|
|
2260
|
+
color: #555;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
.point-create-copy-label span {
|
|
2264
|
+
display: inline;
|
|
2265
|
+
margin: 0;
|
|
2266
|
+
color: #555;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
.point-symbol-row {
|
|
2270
|
+
display: flex;
|
|
2271
|
+
align-items: flex-start;
|
|
2272
|
+
gap: 12px;
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
.point-symbol-size-row {
|
|
2276
|
+
display: flex;
|
|
2277
|
+
align-items: flex-start;
|
|
2278
|
+
gap: 12px;
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
.point-symbol-stepper-control {
|
|
2282
|
+
display: flex;
|
|
2283
|
+
flex-direction: column;
|
|
2284
|
+
gap: 2px;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2287
|
+
.point-symbol-stepper-control:last-child {
|
|
2288
|
+
margin-left: auto;
|
|
2289
|
+
align-items: flex-end;
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
.point-symbol-color-cell {
|
|
2293
|
+
position: relative;
|
|
2294
|
+
white-space: nowrap;
|
|
2295
|
+
flex: 1;
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
.point-symbol-row .layer-number-control input[type="text"],
|
|
2299
|
+
.point-symbol-width-row input[type="text"] {
|
|
2300
|
+
width: 45px;
|
|
2301
|
+
height: 19px;
|
|
2302
|
+
padding-top: 0;
|
|
2303
|
+
padding-bottom: 0;
|
|
2304
|
+
box-sizing: border-box;
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
.point-symbol-width-row input[type="text"] {
|
|
2308
|
+
width: 55px;
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
.layer-style-control-line {
|
|
2312
|
+
display: flex;
|
|
2313
|
+
align-items: flex-start;
|
|
2314
|
+
gap: 12px;
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
.layer-color-cell {
|
|
2318
|
+
position: relative;
|
|
2319
|
+
white-space: nowrap;
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
.layer-style-panel .layer-color-row input[type="text"] {
|
|
2323
|
+
width: 79px;
|
|
2324
|
+
height: 19px;
|
|
2325
|
+
padding-top: 0;
|
|
2326
|
+
padding-bottom: 0;
|
|
2327
|
+
box-sizing: border-box;
|
|
2328
|
+
vertical-align: top;
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
.layer-row-controls {
|
|
2332
|
+
display: flex;
|
|
2333
|
+
gap: 6px;
|
|
2334
|
+
align-items: flex-start;
|
|
2335
|
+
justify-content: flex-start;
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
.layer-number-control {
|
|
2339
|
+
display: block;
|
|
2340
|
+
margin: 0;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
.layer-number-control > span,
|
|
2344
|
+
.label-color-row > span,
|
|
2345
|
+
.layer-color-cell > span {
|
|
2346
|
+
display: block;
|
|
2347
|
+
margin-bottom: 3px;
|
|
2348
|
+
color: #555;
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
.layer-style-panel .layer-number-control input[type="text"] {
|
|
2352
|
+
width: 45px;
|
|
2353
|
+
height: 19px;
|
|
2354
|
+
padding-top: 0;
|
|
2355
|
+
padding-bottom: 0;
|
|
2356
|
+
box-sizing: border-box;
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
.layer-stepper-control {
|
|
2360
|
+
display: flex;
|
|
2361
|
+
align-items: center;
|
|
2362
|
+
gap: 2px;
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2365
|
+
.layer-stepper-control .label-panel-btn {
|
|
2366
|
+
text-align: center;
|
|
2367
|
+
line-height: 18px;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
.layer-stroke-width-value {
|
|
2371
|
+
display: inline-block;
|
|
2372
|
+
width: 30px;
|
|
2373
|
+
min-height: 17px;
|
|
2374
|
+
line-height: 17px;
|
|
2375
|
+
text-align: center;
|
|
2376
|
+
border: 1px solid #999;
|
|
2377
|
+
background: white;
|
|
2378
|
+
cursor: pointer;
|
|
2379
|
+
box-sizing: border-box;
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
.layer-stroke-width-value.editing {
|
|
2383
|
+
cursor: text;
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
.layer-stroke-width-row .layer-number-control {
|
|
2387
|
+
display: block;
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
.layer-style-panel .layer-color-row .label-color-picker input[type="text"] {
|
|
2391
|
+
width: 45px;
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2204
2394
|
.label-color-picker {
|
|
2205
2395
|
position: absolute;
|
|
2206
2396
|
z-index: 25;
|
|
@@ -2220,6 +2410,34 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
2220
2410
|
cursor: crosshair;
|
|
2221
2411
|
}
|
|
2222
2412
|
|
|
2413
|
+
.label-color-presets {
|
|
2414
|
+
margin: 0 0 6px 0;
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
.label-color-preset-row {
|
|
2418
|
+
display: flex;
|
|
2419
|
+
gap: 2px;
|
|
2420
|
+
margin-bottom: 2px;
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
.label-color-preset {
|
|
2424
|
+
box-sizing: border-box;
|
|
2425
|
+
width: 14px;
|
|
2426
|
+
height: 14px;
|
|
2427
|
+
border: 1px solid rgba(0, 0, 0, 0.25);
|
|
2428
|
+
cursor: pointer;
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
.label-color-preset:hover,
|
|
2432
|
+
.label-color-preset:focus {
|
|
2433
|
+
outline: 1px solid #d3aa00;
|
|
2434
|
+
outline-offset: 1px;
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
.label-color-preset-group-start {
|
|
2438
|
+
margin-left: 2px;
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2223
2441
|
.label-color-picker.dragging-color canvas {
|
|
2224
2442
|
cursor: none;
|
|
2225
2443
|
}
|
|
@@ -2280,6 +2498,30 @@ body.dragging-color-picker * {
|
|
|
2280
2498
|
margin-right: 5px;
|
|
2281
2499
|
}
|
|
2282
2500
|
|
|
2501
|
+
.label-style-selection-row .label-editing-status,
|
|
2502
|
+
.label-style-selection-row .label-editing-clear {
|
|
2503
|
+
display: inline;
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
.label-style-selection-row .label-editing-clear.hidden {
|
|
2507
|
+
display: none;
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
.label-editing-status {
|
|
2511
|
+
color: #555;
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
.label-style-selection-row .label-editing-clear {
|
|
2515
|
+
margin-left: 8px;
|
|
2516
|
+
color: var(--colored-text);
|
|
2517
|
+
cursor: pointer;
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
.label-style-selection-row .label-editing-clear:hover,
|
|
2521
|
+
.repair-btn:hover {
|
|
2522
|
+
text-decoration: underline;
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2283
2525
|
.label-position-grid {
|
|
2284
2526
|
display: grid;
|
|
2285
2527
|
grid-template-columns: repeat(3, 10px);
|