Skip to content

Commit

Permalink
fix typo (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephaschu authored Feb 27, 2024
1 parent cc725f5 commit f2ecbc8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugins/MapExport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ class MapExport extends React.Component {
<input name="HIGHLIGHT_SYMBOL" readOnly type="hidden" value={highlightParams.styles.join(";")} />
<input name="HIGHLIGHT_LABELSTRING" readOnly type="hidden" value={highlightParams.labels.join(";")} />
<input name="HIGHLIGHT_LABELCOLOR" readOnly type="hidden" value={highlightParams.labelFillColors.join(";")} />
<input name="HIGHLIGHT_LABELBUFFERCOLOR" readOnly type="hidden" value={highlightParams.labelOultineColors.join(";")} />
<input name="HIGHLIGHT_LABELBUFFERCOLOR" readOnly type="hidden" value={highlightParams.labelOutlineColors.join(";")} />
<input name="HIGHLIGHT_LABELBUFFERSIZE" readOnly type="hidden" value={highlightParams.labelOutlineSizes.join(";")} />
<input name="HIGHLIGHT_LABELSIZE" readOnly type="hidden" value={highlightParams.labelSizes.join(";")} />
<input name="HIGHLIGHT_LABEL_DISTANCE" readOnly type="hidden" value={highlightParams.labelDist.join(";")} />
Expand Down
2 changes: 1 addition & 1 deletion plugins/Print.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ class Print extends React.Component {
<input name={mapName + ":HIGHLIGHT_SYMBOL"} readOnly type={formvisibility} value={highlightParams.styles.join(";")} />
<input name={mapName + ":HIGHLIGHT_LABELSTRING"} readOnly type={formvisibility} value={highlightParams.labels.join(";")} />
<input name={mapName + ":HIGHLIGHT_LABELCOLOR"} readOnly type={formvisibility} value={highlightParams.labelFillColors.join(";")} />
<input name={mapName + ":HIGHLIGHT_LABELBUFFERCOLOR"} readOnly type={formvisibility} value={highlightParams.labelOultineColors.join(";")} />
<input name={mapName + ":HIGHLIGHT_LABELBUFFERCOLOR"} readOnly type={formvisibility} value={highlightParams.labelOutlineColors.join(";")} />
<input name={mapName + ":HIGHLIGHT_LABELBUFFERSIZE"} readOnly type={formvisibility} value={highlightParams.labelOutlineSizes.join(";")} />
<input name={mapName + ":HIGHLIGHT_LABELSIZE"} readOnly type={formvisibility} value={highlightParams.labelSizes.join(";")} />
<input name={mapName + ":HIGHLIGHT_LABEL_DISTANCE"} readOnly type={formvisibility} value={highlightParams.labelDist.join(";")} />
Expand Down
2 changes: 1 addition & 1 deletion plugins/RasterExport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class RasterExport extends React.Component {
<input name="HIGHLIGHT_SYMBOL" readOnly type="hidden" value={highlightParams.styles.join(";")} />
<input name="HIGHLIGHT_LABELSTRING" readOnly type="hidden" value={highlightParams.labels.join(";")} />
<input name="HIGHLIGHT_LABELCOLOR" readOnly type="hidden" value={highlightParams.labelFillColors.join(";")} />
<input name="HIGHLIGHT_LABELBUFFERCOLOR" readOnly type="hidden" value={highlightParams.labelOultineColors.join(";")} />
<input name="HIGHLIGHT_LABELBUFFERCOLOR" readOnly type="hidden" value={highlightParams.labelOutlineColors.join(";")} />
<input name="HIGHLIGHT_LABELBUFFERSIZE" readOnly type="hidden" value={highlightParams.labelOutlineSizes.join(";")} />
<input name="HIGHLIGHT_LABELSIZE" readOnly type="hidden" value={highlightParams.labelSizes.join(";")} />
<input name="HIGHLIGHT_LABEL_DISTANCE" readOnly type="hidden" value={highlightParams.labelDist.join(";")} />
Expand Down
10 changes: 5 additions & 5 deletions utils/VectorLayerUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const VectorLayerUtils = {
styles: [],
labels: [],
labelFillColors: [],
labelOultineColors: [],
labelOutlineColors: [],
labelOutlineSizes: [],
labelSizes: [],
labelDist: []
Expand Down Expand Up @@ -70,7 +70,7 @@ const VectorLayerUtils = {
params.labels.push(properties.segment_labels[i] || " ");
params.geoms.push(VectorLayerUtils.geoJSONGeomToWkt(segment, printCrs === "EPSG:4326" ? 4 : 2));
params.labelFillColors.push(styleOptions.textFill);
params.labelOultineColors.push(styleOptions.textStroke);
params.labelOutlineColors.push(styleOptions.textStroke);
params.labelOutlineSizes.push(scaleFactor);
params.labelSizes.push(Math.round(10 * scaleFactor));
params.labelDist.push("-5");
Expand All @@ -94,14 +94,14 @@ const VectorLayerUtils = {
};
params.geoms.push(VectorLayerUtils.geoJSONGeomToWkt(geometry, printCrs === "EPSG:4326" ? 4 : 2));
params.labelFillColors.push(ensureHex(styleOptions.fillColor));
params.labelOultineColors.push(ensureHex(styleOptions.strokeColor));
params.labelOutlineColors.push(ensureHex(styleOptions.strokeColor));
params.labelOutlineSizes.push(scaleFactor * styleOptions.strokeWidth * 0.5);
params.labelSizes.push(Math.round(10 * styleOptions.strokeWidth * scaleFactor));
params.labelDist.push("5");
} else {
params.geoms.push(VectorLayerUtils.geoJSONGeomToWkt(geometry, printCrs === "EPSG:4326" ? 4 : 2));
params.labelFillColors.push(styleOptions.textFill);
params.labelOultineColors.push(styleOptions.textStroke);
params.labelOutlineColors.push(styleOptions.textStroke);
params.labelOutlineSizes.push(scaleFactor);
params.labelSizes.push(Math.round(10 * scaleFactor));
params.labelDist.push("-5");
Expand Down Expand Up @@ -278,7 +278,7 @@ const VectorLayerUtils = {
params.geoms.push(VectorLayerUtils.geoJSONGeomToWkt(geometry, printCrs === "EPSG:4326" ? 4 : 2));
params.labels.push(" ");
params.labelFillColors.push("#FFF");
params.labelOultineColors.push("#FFF");
params.labelOutlineColors.push("#FFF");
params.labelOutlineSizes.push(scaleFactor);
params.labelSizes.push(Math.round(10 * scaleFactor));
params.labelDist.push("0");
Expand Down

0 comments on commit f2ecbc8

Please sign in to comment.