se cambio tamaño a iconos
parent
2198f9a818
commit
2e60c6b041
|
@ -43,17 +43,17 @@
|
|||
if (!iconPartida) {
|
||||
iconPartida = L.icon({
|
||||
iconUrl: imagenPartida,
|
||||
iconSize: [64, 64],
|
||||
iconAnchor: [32, 64],
|
||||
popupAnchor: [0, -32]
|
||||
iconSize: [40, 40],
|
||||
iconAnchor: [20, 40],
|
||||
popupAnchor: [0, -20]
|
||||
})
|
||||
}
|
||||
if (!iconTermino) {
|
||||
iconTermino = L.icon({
|
||||
iconUrl: imagenTermino,
|
||||
iconSize: [64, 64],
|
||||
iconAnchor: [0, 64],
|
||||
popupAnchor: [0, -32]
|
||||
iconSize: [40, 40],
|
||||
iconAnchor: [20, 40],
|
||||
popupAnchor: [0, -20]
|
||||
})
|
||||
}
|
||||
if (!iconParada) {
|
||||
|
@ -67,7 +67,7 @@
|
|||
if (!myMap) {
|
||||
myMap = L.map(elMap)
|
||||
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
||||
{ attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' }
|
||||
{ attribution: '© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' }
|
||||
).addTo(myMap);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue