map-ol-utils 0.0.60 → 0.0.61

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/index.cjs CHANGED
@@ -185,7 +185,7 @@ var assembleGeoJson = (dataList, config) => {
185
185
  try {
186
186
  const pathArray = Array.isArray(item[key]) ? item[key] : JSON.parse(item[key] || "[]");
187
187
  if (pathArray.length) {
188
- const type = determineGeometryType(pathArray);
188
+ const type = item["geoType"] || determineGeometryType(pathArray);
189
189
  if (type !== "Invalid" /* Invalid */) {
190
190
  tempList.push({
191
191
  type: "Feature",
package/dist/index.js CHANGED
@@ -125,7 +125,7 @@ var assembleGeoJson = (dataList, config) => {
125
125
  try {
126
126
  const pathArray = Array.isArray(item[key]) ? item[key] : JSON.parse(item[key] || "[]");
127
127
  if (pathArray.length) {
128
- const type = determineGeometryType(pathArray);
128
+ const type = item["geoType"] || determineGeometryType(pathArray);
129
129
  if (type !== "Invalid" /* Invalid */) {
130
130
  tempList.push({
131
131
  type: "Feature",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "map-ol-utils",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "type": "module",
5
5
  "description": "Openlayers utils library",
6
6
  "files": [