@overmap-ai/core 1.0.60-geo-images.5 → 1.0.60-geo-images.7
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.
|
@@ -406,6 +406,9 @@ var __publicField = (obj, key, value) => {
|
|
|
406
406
|
const flipCoordinates = (coordinates) => {
|
|
407
407
|
return [coordinates[1], coordinates[0]];
|
|
408
408
|
};
|
|
409
|
+
const flipBounds = (bounds) => {
|
|
410
|
+
return [flipCoordinates(bounds[0]), flipCoordinates(bounds[1])];
|
|
411
|
+
};
|
|
409
412
|
function offsetPositionByMeters(originalPosition, latMeters, lngMeters) {
|
|
410
413
|
const { lat, lng } = originalPosition;
|
|
411
414
|
const earthRadius = 6378137;
|
|
@@ -7318,7 +7321,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7318
7321
|
const promise = this.enqueueRequest({
|
|
7319
7322
|
description: "Delete geo image",
|
|
7320
7323
|
method: HttpMethod.DELETE,
|
|
7321
|
-
url: `/geo-
|
|
7324
|
+
url: `/geo-images/${geoImageId}/`,
|
|
7322
7325
|
blocks: [geoImageId],
|
|
7323
7326
|
blockers: [geoImageId]
|
|
7324
7327
|
});
|
|
@@ -7536,6 +7539,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7536
7539
|
exports2.fileReducer = fileReducer;
|
|
7537
7540
|
exports2.fileSlice = fileSlice;
|
|
7538
7541
|
exports2.fileToBlob = fileToBlob;
|
|
7542
|
+
exports2.flipBounds = flipBounds;
|
|
7539
7543
|
exports2.flipCoordinates = flipCoordinates;
|
|
7540
7544
|
exports2.formReducer = formReducer;
|
|
7541
7545
|
exports2.formRevisionAttachmentReducer = formRevisionAttachmentReducer;
|