Marker clusters (draft)
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user