augustine-jkmap 1.0.6 → 1.0.8

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.
@@ -4313,7 +4313,7 @@ function getTextSymbol(options) {
4313
4313
  const yoffset = isFinite(options.yoffset) ? Number(options.yoffset) : 3;
4314
4314
  return {
4315
4315
  type: "text",
4316
- text: String(text ?? ""),
4316
+ text: text || "",
4317
4317
  color: color,
4318
4318
  haloColor: haloColor,
4319
4319
  haloSize: haloSize,
@@ -4775,7 +4775,7 @@ function parseWKTToPaths(wkt) {
4775
4775
  const upper = wkt.trim().toUpperCase();
4776
4776
  let coordsPart;
4777
4777
  if (upper.startsWith("MULTILINESTRING")) {
4778
- coordsPart = wkt.match(/MULTILINESTRING\s*\(\s*(.+)\s*\)/i)?.[1];
4778
+ coordsPart = wkt.match(/MULTILINESTRING\s*\(\s*(.+)\s*\)/i)[1];
4779
4779
  if (!coordsPart) return null;
4780
4780
  const lines = coordsPart.split(/\)\s*,\s*\(/);
4781
4781
  return lines.map((line) => {
@@ -4783,7 +4783,7 @@ function parseWKTToPaths(wkt) {
4783
4783
  return line.split(",").map((pt) => pt.trim().split(/\s+/).map(Number));
4784
4784
  });
4785
4785
  } else if (upper.startsWith("LINESTRING")) {
4786
- coordsPart = wkt.match(/LINESTRING\s*\(\s*(.+)\s*\)/i)?.[1];
4786
+ coordsPart = wkt.match(/LINESTRING\s*\(\s*(.+)\s*\)/i)[1];
4787
4787
  if (!coordsPart) return null;
4788
4788
  return [
4789
4789
  coordsPart.split(",").map((pt) => pt.trim().split(/\s+/).map(Number)),