augustine-jkmap 1.0.7 → 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.
- package/dist/augustine-jkmap.common.js +2 -2
- package/dist/augustine-jkmap.common.js.map +1 -1
- package/dist/augustine-jkmap.umd.js +2 -2
- package/dist/augustine-jkmap.umd.js.map +1 -1
- package/dist/augustine-jkmap.umd.min.js +1 -1
- package/dist/augustine-jkmap.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -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)
|
|
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)
|
|
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)),
|