Fix visits map not being rendered correctly in the Visits page

This commit is contained in:
Eugene Burmakin 2024-09-28 16:58:17 +02:00
parent 6f2486b8ec
commit 9a962bca72
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed ### Fixed
- GPX export now finishes correctly and does not throw an error in the end - 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 ### Changed

View file

@ -14,7 +14,7 @@ export default class extends Controller {
this.radius = this.element.dataset.radius; this.radius = this.element.dataset.radius;
this.map = L.map(this.containerTarget).setView([this.center[0], this.center[1]], 17); this.map = L.map(this.containerTarget).setView([this.center[0], this.center[1]], 17);
osmMapLayer(this.map), osmMapLayer(this.map, "OpenStreetMap")
this.addMarkers(); this.addMarkers();
L.circle([this.center[0], this.center[1]], { L.circle([this.center[0], this.center[1]], {