marker added
This commit is contained in:
parent
eaf4a3c282
commit
6deb08486c
Binary file not shown.
|
@ -137,7 +137,7 @@ Vue.component('Accordeon', {
|
|||
<img v-bind:src="this.list.img"></img>
|
||||
</aside>
|
||||
<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-en">{{ this.list.txtEN }}</p>
|
||||
<p class="b9h-lang-it">{{ this.list.txtIT }}</p>
|
||||
|
@ -279,6 +279,9 @@ Vue.component('Accordeon', {
|
|||
toggleActive () {
|
||||
this.isActive = !this.isActive
|
||||
document.getElementById(this.list.id).scrollIntoView();
|
||||
},
|
||||
setMap () {
|
||||
map.setView([14,54],3)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -26,6 +26,17 @@ map.setMaxBounds(new L.LatLngBounds(
|
|||
console.log("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
|
||||
map.setView([-163,-163],2)
|
||||
|
|
Loading…
Reference in New Issue