From 398bdc3344b0b68ef4f0e38d82f509ef633b9834 Mon Sep 17 00:00:00 2001 From: andrew nimmo Date: Thu, 1 Aug 2024 23:27:25 -0700 Subject: [PATCH] Update map_controller.js --- app/javascript/controllers/map_controller.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/javascript/controllers/map_controller.js b/app/javascript/controllers/map_controller.js index 282293ea13..52f490cd2d 100644 --- a/app/javascript/controllers/map_controller.js +++ b/app/javascript/controllers/map_controller.js @@ -362,13 +362,6 @@ export default class extends GeocodeController { } } - clearAutocompleterSwapBuffer() { - if (this.autocomplete_buffer) { - clearTimeout(this.autocomplete_buffer) - this.autocomplete_buffer = 0 - } - } - clearMarkerDrawBuffer() { if (this.marker_draw_buffer) { clearTimeout(this.marker_draw_buffer) @@ -608,14 +601,6 @@ export default class extends GeocodeController { return corners } - // Computes the center of a Google Maps Rectangle's LatLngBoundsLiteral object - centerFromBounds(bounds) { - let lat = (bounds?.north + bounds?.south) / 2.0 - let lng = (bounds?.east + bounds?.west) / 2.0 - if (bounds?.west > bounds?.east) { lng += 180 } - return { lat: lat, lng: lng } - } - // // COORDINATES - ELEVATION //