Skip to content

Commit

Permalink
Update map_controller.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Aug 2, 2024
1 parent cd3cb2a commit 398bdc3
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions app/javascript/controllers/map_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
//
Expand Down

0 comments on commit 398bdc3

Please sign in to comment.