From 9a962bca72d480ff460aca5e71736107a07aebca Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Sat, 28 Sep 2024 16:58:17 +0200 Subject: [PATCH] Fix visits map not being rendered correctly in the Visits page --- CHANGELOG.md | 3 ++- app/javascript/controllers/visit_modal_map_controller.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b853f07..c05d1b6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - GPX export now finishes correctly and does not throw an error in the end -- Deleting points from the Points page now preserves `start_at` and `end_at` values for the routes +- Deleting points from the Points page now preserves `start_at` and `end_at` values for the routes. #261 +- Visits map now being rendered correctly in the Visits page. #262 ### Changed diff --git a/app/javascript/controllers/visit_modal_map_controller.js b/app/javascript/controllers/visit_modal_map_controller.js index 4619835a..f8f4c9ea 100644 --- a/app/javascript/controllers/visit_modal_map_controller.js +++ b/app/javascript/controllers/visit_modal_map_controller.js @@ -14,7 +14,7 @@ export default class extends Controller { this.radius = this.element.dataset.radius; this.map = L.map(this.containerTarget).setView([this.center[0], this.center[1]], 17); - osmMapLayer(this.map), + osmMapLayer(this.map, "OpenStreetMap") this.addMarkers(); L.circle([this.center[0], this.center[1]], {