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