marker added

This commit is contained in:
ed barz 2022-05-19 00:17:59 +02:00
parent eaf4a3c282
commit 6deb08486c
3 changed files with 15 additions and 1 deletions

Binary file not shown.

View File

@ -137,7 +137,7 @@ Vue.component('Accordeon', {
<img v-bind:src="this.list.img"></img> <img v-bind:src="this.list.img"></img>
</aside> </aside>
<aside class="txt"> <aside class="txt">
<h3>{{ this.list.name }}</h3> <h3 v-on:click="setMap()" >{{ this.list.name }}</h3>
<p class="b9h-lang-fr">{{ this.list.txtFR }}</p> <p class="b9h-lang-fr">{{ this.list.txtFR }}</p>
<p class="b9h-lang-en">{{ this.list.txtEN }}</p> <p class="b9h-lang-en">{{ this.list.txtEN }}</p>
<p class="b9h-lang-it">{{ this.list.txtIT }}</p> <p class="b9h-lang-it">{{ this.list.txtIT }}</p>
@ -279,6 +279,9 @@ Vue.component('Accordeon', {
toggleActive () { toggleActive () {
this.isActive = !this.isActive this.isActive = !this.isActive
document.getElementById(this.list.id).scrollIntoView(); document.getElementById(this.list.id).scrollIntoView();
},
setMap () {
map.setView([14,54],3)
} }
} }
}) })

View File

@ -26,6 +26,17 @@ map.setMaxBounds(new L.LatLngBounds(
console.log("getMaxZoom:") console.log("getMaxZoom:")
console.log(map.getMaxZoom()) console.log(map.getMaxZoom())
var markPointerIcon = L.icon({
iconUrl: 'asset/markers/pointer.png',
iconSize: [22, 32],
iconAnchor: [7, 20],
popupAnchor: [-10, -34],
});
var marker = L.marker([0,0], {icon: markPointerIcon}).addTo(map);
/* /*
min/max = 163 min/max = 163
map.setView([-163,-163],2) map.setView([-163,-163],2)