@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.
@@ -418,6 +418,9 @@ const literalToCoordinates = (literal) => {
418
418
  const flipCoordinates = (coordinates) => {
419
419
  return [coordinates[1], coordinates[0]];
420
420
  };
421
+ const flipBounds = (bounds) => {
422
+ return [flipCoordinates(bounds[0]), flipCoordinates(bounds[1])];
423
+ };
421
424
  function offsetPositionByMeters(originalPosition, latMeters, lngMeters) {
422
425
  const { lat, lng } = originalPosition;
423
426
  const earthRadius = 6378137;
@@ -7330,7 +7333,7 @@ class GeoImageService extends BaseUploadService {
7330
7333
  const promise = this.enqueueRequest({
7331
7334
  description: "Delete geo image",
7332
7335
  method: HttpMethod.DELETE,
7333
- url: `/geo-image/${geoImageId}/`,
7336
+ url: `/geo-images/${geoImageId}/`,
7334
7337
  blocks: [geoImageId],
7335
7338
  blockers: [geoImageId]
7336
7339
  });
@@ -7549,6 +7552,7 @@ export {
7549
7552
  fileReducer,
7550
7553
  fileSlice,
7551
7554
  fileToBlob,
7555
+ flipBounds,
7552
7556
  flipCoordinates,
7553
7557
  formReducer,
7554
7558
  formRevisionAttachmentReducer,