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.
@@ -4323,7 +4323,7 @@ function getTextSymbol(options) {
4323
4323
  const yoffset = isFinite(options.yoffset) ? Number(options.yoffset) : 3;
4324
4324
  return {
4325
4325
  type: "text",
4326
- text: String(text ?? ""),
4326
+ text: text || "",
4327
4327
  color: color,
4328
4328
  haloColor: haloColor,
4329
4329
  haloSize: haloSize,
@@ -4785,7 +4785,7 @@ function parseWKTToPaths(wkt) {
4785
4785
  const upper = wkt.trim().toUpperCase();
4786
4786
  let coordsPart;
4787
4787
  if (upper.startsWith("MULTILINESTRING")) {
4788
- coordsPart = wkt.match(/MULTILINESTRING\s*\(\s*(.+)\s*\)/i)?.[1];
4788
+ coordsPart = wkt.match(/MULTILINESTRING\s*\(\s*(.+)\s*\)/i)[1];
4789
4789
  if (!coordsPart) return null;
4790
4790
  const lines = coordsPart.split(/\)\s*,\s*\(/);
4791
4791
  return lines.map((line) => {
@@ -4793,7 +4793,7 @@ function parseWKTToPaths(wkt) {
4793
4793
  return line.split(",").map((pt) => pt.trim().split(/\s+/).map(Number));
4794
4794
  });
4795
4795
  } else if (upper.startsWith("LINESTRING")) {
4796
- coordsPart = wkt.match(/LINESTRING\s*\(\s*(.+)\s*\)/i)?.[1];
4796
+ coordsPart = wkt.match(/LINESTRING\s*\(\s*(.+)\s*\)/i)[1];
4797
4797
  if (!coordsPart) return null;
4798
4798
  return [
4799
4799
  coordsPart.split(",").map((pt) => pt.trim().split(/\s+/).map(Number)),