Marker clusters (draft)

This commit is contained in:
2024-11-29 11:41:05 +01:00
parent 381c3bfe69
commit e865ada571
9 changed files with 27 additions and 16 deletions

View File

@@ -2,6 +2,7 @@ import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = ['coords'];
END_ZOOM = 20;
mapAnimate = {
animate: true,
duration: 1,
@@ -14,7 +15,7 @@ export default class extends Controller {
map.setView(
coords,
19,
this.END_ZOOM,
this.mapAnimate
);